Skip to content

Commit

Permalink
Fixed #1520 - Extra space between Dropdown and filter list
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Sep 14, 2021
1 parent 6df9d4e commit 357b261
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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" 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>
</div>
</div>
Expand Down Expand Up @@ -608,6 +608,8 @@ export default {
},
onFilterChange(event) {
this.$emit('filter', {originalEvent: event, value: event.target.value});
},
onFilterUpdated() {
if (this.overlayVisible) {
this.alignOverlay();
}
Expand Down

0 comments on commit 357b261

Please sign in to comment.