Skip to content

Commit

Permalink
Merge pull request #3009 from nichwall/timePicker_cleanup
Browse files Browse the repository at this point in the history
Time picker cleanup
  • Loading branch information
advplyr authored May 25, 2024
2 parents 38ba7fb + c58d613 commit 30d3e41
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/components/ui/TimePicker.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<div class="relative">
<div tabindex="0" @focus="focusDigit('second0')" class="relative">
<div class="rounded text-gray-200 border w-full px-3 py-2" :class="focusedDigit ? 'bg-primary bg-opacity-50 border-gray-300' : 'bg-primary border-gray-600'" @click="clickInput" v-click-outside="clickOutsideObj">
<div class="flex items-center">
<template v-for="(digit, index) in digitDisplay">
Expand Down Expand Up @@ -174,7 +174,7 @@ export default {
return this.increaseFocused()
} else if (evt.key === 'ArrowDown') {
return this.decreaseFocused()
} else if (evt.key === 'Enter' || evt.key === 'Escape') {
} else if (evt.key === 'Enter' || evt.key === 'Escape' || evt.key === 'Tab') {
return this.removeFocus()
}
Expand Down Expand Up @@ -209,4 +209,4 @@ export default {
.digit-focused {
background-color: #555;
}
</style>
</style>

0 comments on commit 30d3e41

Please sign in to comment.