Skip to content

Commit

Permalink
Fix:Close sleep timer custom timer sub modal on sleep timer close #1112
Browse files Browse the repository at this point in the history
  • Loading branch information
advplyr committed Apr 1, 2024
1 parent e0ac6a1 commit 8201f3c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions components/modals/SleepTimerModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,7 @@
</div>
</template>

<div
class="w-full h-full overflow-hidden absolute top-0 left-0 flex items-center justify-center"
@click="
show = false
manualTimerModal = false
"
>
<div class="w-full h-full overflow-hidden absolute top-0 left-0 flex items-center justify-center" @click="show = false">
<div class="w-full overflow-x-hidden overflow-y-auto bg-primary rounded-lg border border-border" style="max-height: 75%" @click.stop>
<div v-if="manualTimerModal" class="p-4">
<div class="flex mb-4" @click="manualTimerModal = false">
Expand Down Expand Up @@ -71,7 +65,7 @@ export default {
},
data() {
return {
manualTimerModal: null,
manualTimerModal: true,
manualTimeoutMin: 1
}
},
Expand All @@ -81,6 +75,9 @@ export default {
return this.value
},
set(val) {
if (!val) {
this.manualTimerModal = false
}
this.$emit('input', val)
}
},
Expand Down

0 comments on commit 8201f3c

Please sign in to comment.