feat(Select): avoid IME input issue when typing in filter
parent
839a980b1b
commit
a409d43579
|
@ -495,6 +495,12 @@ export default {
|
||||||
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
!this.virtualScrollerDisabled && this.virtualScroller.scrollToIndex(0);
|
||||||
},
|
},
|
||||||
onFilterKeyDown(event) {
|
onFilterKeyDown(event) {
|
||||||
|
const isComposing = event.isComposing;
|
||||||
|
|
||||||
|
// Avoid IME input issue in Chinese, Japanese and Korean languages
|
||||||
|
// If they are still typing, do not trigger onFilterKeyDown
|
||||||
|
if (isComposing) return;
|
||||||
|
|
||||||
switch (event.code) {
|
switch (event.code) {
|
||||||
case 'ArrowDown':
|
case 'ArrowDown':
|
||||||
this.onArrowDownKey(event);
|
this.onArrowDownKey(event);
|
||||||
|
|
Loading…
Reference in New Issue