Fixed #1520 - Extra space between Dropdown and filter list
parent
6df9d4e461
commit
357b26178b
|
@ -21,7 +21,7 @@
|
||||||
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
<slot name="header" :value="modelValue" :options="visibleOptions"></slot>
|
||||||
<div class="p-dropdown-header" v-if="filter">
|
<div class="p-dropdown-header" v-if="filter">
|
||||||
<div class="p-dropdown-filter-container">
|
<div class="p-dropdown-filter-container">
|
||||||
<input type="text" ref="filterInput" v-model="filterValue" autoComplete="off" class="p-dropdown-filter p-inputtext p-component" :placeholder="filterPlaceholder" @keydown="onFilterKeyDown" @input="onFilterChange"/>
|
<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"/>
|
||||||
<span class="p-dropdown-filter-icon pi pi-search"></span>
|
<span class="p-dropdown-filter-icon pi pi-search"></span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -608,6 +608,8 @@ export default {
|
||||||
},
|
},
|
||||||
onFilterChange(event) {
|
onFilterChange(event) {
|
||||||
this.$emit('filter', {originalEvent: event, value: event.target.value});
|
this.$emit('filter', {originalEvent: event, value: event.target.value});
|
||||||
|
},
|
||||||
|
onFilterUpdated() {
|
||||||
if (this.overlayVisible) {
|
if (this.overlayVisible) {
|
||||||
this.alignOverlay();
|
this.alignOverlay();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue