diff --git a/packages/primevue/src/listbox/Listbox.d.ts b/packages/primevue/src/listbox/Listbox.d.ts index 9d7531e10..e43de6ac0 100755 --- a/packages/primevue/src/listbox/Listbox.d.ts +++ b/packages/primevue/src/listbox/Listbox.d.ts @@ -109,6 +109,10 @@ export interface ListboxFilterEvent { * Filter value */ value: string; + /** + * Filtered options + */ + filterValue: any[]; } /** diff --git a/packages/primevue/src/listbox/Listbox.vue b/packages/primevue/src/listbox/Listbox.vue index b2a473ac3..33b69bf4a 100755 --- a/packages/primevue/src/listbox/Listbox.vue +++ b/packages/primevue/src/listbox/Listbox.vue @@ -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() {