Skip to content

Commit

Permalink
Fixed #6641
Browse files Browse the repository at this point in the history
  • Loading branch information
tugcekucukoglu committed Nov 12, 2024
1 parent 1b2360e commit 281f322
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/primevue/src/listbox/Listbox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export interface ListboxFilterEvent {
* Filter value
*/
value: string;
/**
* Filtered options
*/
filterValue: any[];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/primevue/src/listbox/Listbox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ export default {
}
},
onFilterChange(event) {
this.$emit('filter', { originalEvent: event, value: event.target.value });
this.$emit('filter', { originalEvent: event, value: event.target.value, filterValue: this.visibleOptions });
this.focusedOptionIndex = this.startRangeIndex = -1;
},
onFilterBlur() {
Expand Down

0 comments on commit 281f322

Please sign in to comment.