Skip to content

Commit

Permalink
Improved: code for removing scroll in time picker modal (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
amansinghbais committed Dec 5, 2023
1 parent 96966d7 commit 0922c06
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions src/components/CustomScheduleModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@
</ion-content>

<ion-modal class="date-time-modal" :is-open="isTimeModalOpen" @didDismiss="() => isTimeModalOpen = false">
<ion-content :force-overscroll="false">
<ion-datetime
show-default-buttons
hour-cycle="h12"
presentation="time"
:value="selectedTimesForWeek[selectedDayTime] ? selectedTimesForWeek[selectedDayTime] : ''"
@ionChange="updateTime($event)"
/>
</ion-content>
<ion-datetime
show-default-buttons
hour-cycle="h12"
presentation="time"
:value="selectedTimesForWeek[selectedDayTime] ? selectedTimesForWeek[selectedDayTime] : ''"
@ionChange="updateTime($event)"
/>
</ion-modal>

<ion-fab vertical="bottom" horizontal="end" slot="fixed">
Expand Down

0 comments on commit 0922c06

Please sign in to comment.