Skip to content

Commit

Permalink
#1590 - for Dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Sep 22, 2021
1 parent 451da1d commit 571ad71
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/components/dropdown/Dropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<transition name="p-connected-overlay" @enter="onOverlayEnter" @leave="onOverlayLeave">
<div ref="overlay" class="p-dropdown-panel p-component" v-if="overlayVisible">
<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"/>
<span class="p-dropdown-filter-icon pi pi-search"></span>
</div>
Expand Down Expand Up @@ -92,6 +92,9 @@ export default {
currentSearchChar: null,
previousSearchChar: null,
searchValue: null,
updated() {
this.onFilterUpdated();
},
beforeDestroy() {
this.restoreAppend();
this.unbindOutsideClickListener();
Expand Down Expand Up @@ -457,6 +460,8 @@ export default {
},
onFilterChange(event) {
this.$emit('filter', {originalEvent: event, value: event.target.value});
},
onFilterUpdated() {console.log('wwww')
if (this.overlayVisible) {
this.alignOverlay();
}
Expand Down

0 comments on commit 571ad71

Please sign in to comment.