瀏覽代碼

Select: fix select filterable bug (#17494)

pofore 4 年之前
父節點
當前提交
4943867337
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/select/src/select.vue

+ 1 - 2
packages/select/src/select.vue

@@ -83,13 +83,12 @@
       :tabindex="(multiple && filterable) ? '-1' : null"
       @focus="handleFocus"
       @blur="handleBlur"
-      @keyup.native="debouncedOnInputChange"
+      @input="debouncedOnInputChange"
       @keydown.native.down.stop.prevent="navigateOptions('next')"
       @keydown.native.up.stop.prevent="navigateOptions('prev')"
       @keydown.native.enter.prevent="selectOption"
       @keydown.native.esc.stop.prevent="visible = false"
       @keydown.native.tab="visible = false"
-      @paste.native="debouncedOnInputChange"
       @mouseenter.native="inputHovering = true"
       @mouseleave.native="inputHovering = false">
       <template slot="prefix" v-if="$slots.prefix">