|
|
@ -38,7 +38,7 @@ const vModel = computed({ |
|
|
|
|
|
|
|
|
|
|
|
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! |
|
|
|
const isExpandedFormOpen = inject(IsExpandedFormOpenInj, ref(false))! |
|
|
|
|
|
|
|
|
|
|
|
const focus: VNodeRef = (el) => !isExpandedFormOpen && (el as HTMLInputElement)?.focus() |
|
|
|
const focus: VNodeRef = (el) => !isExpandedFormOpen.value && (el as HTMLInputElement)?.focus() |
|
|
|
|
|
|
|
|
|
|
|
function onKeyDown(evt: KeyboardEvent) { |
|
|
|
function onKeyDown(evt: KeyboardEvent) { |
|
|
|
return evt.key === '.' && evt.preventDefault() |
|
|
|
return evt.key === '.' && evt.preventDefault() |
|
|
|