Fixed #1389 - Dropdown search don't work with Gboard
parent
db46ee81af
commit
8524b0181a
|
@ -21,7 +21,7 @@
|
|||
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
||||
<div class="p-dropdown-header" v-if="filter">
|
||||
<div class="p-dropdown-filter-container">
|
||||
<input type="text" ref="filterInput" v-model="filterValue" @vnode-updated="onFilterUpdated" autoComplete="off" class="p-dropdown-filter p-inputtext p-component" :placeholder="filterPlaceholder" @keydown="onFilterKeyDown" @input="onFilterChange"/>
|
||||
<input type="text" ref="filterInput" :value="filterValue" @vnode-updated="onFilterUpdated" autoComplete="off" class="p-dropdown-filter p-inputtext p-component" :placeholder="filterPlaceholder" @keydown="onFilterKeyDown" @input="onFilterChange"/>
|
||||
<span class="p-dropdown-filter-icon pi pi-search"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -612,6 +612,7 @@ export default {
|
|||
return label.startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale));
|
||||
},
|
||||
onFilterChange(event) {
|
||||
this.filterValue = event.target.value;
|
||||
this.$emit('filter', {originalEvent: event, value: event.target.value});
|
||||
},
|
||||
onFilterUpdated() {
|
||||
|
|
Loading…
Reference in New Issue