mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-14 19:22:14 +01:00
fix enter submits in the time range dropdown
This commit is contained in:
@@ -20,10 +20,6 @@ const emit = defineEmits<{
|
||||
|
||||
const open = ref(false);
|
||||
const triggerElement = ref<HTMLButtonElement | null>(null);
|
||||
function closeAndFocusButton() {
|
||||
triggerElement.value?.focus();
|
||||
open.value = false;
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -59,7 +55,7 @@ function closeAndFocusButton() {
|
||||
emit('changed', newStart, newEnd)
|
||||
"
|
||||
focus
|
||||
@close="closeAndFocusButton"
|
||||
@close="open = false"
|
||||
:start="start"
|
||||
:end="end">
|
||||
</TimeRangeSelector>
|
||||
|
||||
Reference in New Issue
Block a user