fix(components): [select] Fix input key event (#15544)

closed #15536
This commit is contained in:
kooriookami
2024-01-17 10:30:15 +08:00
committed by GitHub
parent a38893fc4e
commit f8f9620bdb
2 changed files with 5 additions and 7 deletions

View File

@@ -150,7 +150,6 @@
spellcheck="false"
type="text"
:name="name"
:unselectable="expanded ? 'on' : undefined"
@focus="handleFocus"
@blur="handleBlur"
@input="onInput"
@@ -161,7 +160,7 @@
@keydown.down.stop.prevent="onKeyboardNavigate('forward')"
@keydown.enter.stop.prevent="onKeyboardSelect"
@keydown.esc.stop.prevent="handleEsc"
@keydown.delete.stop="handleDel"
@keydown.delete.stop.prevent="handleDel"
@click.stop="toggleMenu"
/>
<span

View File

@@ -152,12 +152,11 @@
aria-haspopup="listbox"
@focus="handleFocus"
@blur="handleBlur"
@keydown.down.prevent="navigateOptions('next')"
@keydown.up.prevent="navigateOptions('prev')"
@keydown.esc="handleEsc"
@keydown.down.stop.prevent="navigateOptions('next')"
@keydown.up.stop.prevent="navigateOptions('prev')"
@keydown.esc.stop.prevent="handleEsc"
@keydown.enter.stop.prevent="selectOption"
@keydown.delete.stop="deletePrevTag"
@keydown.tab="expanded = false"
@keydown.delete.stop.prevent="deletePrevTag"
@compositionstart="handleCompositionStart"
@compositionupdate="handleCompositionUpdate"
@compositionend="handleCompositionEnd"