mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
fix: Primefaces#5060, Dropdown: After selecting an option, clearing the value using close icon should clear the filter input (#5061)
* fix: Primefaces#5060, Dropdown: After selecting an option, clearing the value using close icon should clear the filter input * fix: Primefaces#5060, Dropdown: After selecting an option, clearing the value using close icon should clear the filter input --------- Co-authored-by: Akshay Antony <akshayantony55@gmail.com>
This commit is contained in:
parent
6b75f1a565
commit
6f71f8195e
6 changed files with 25 additions and 1 deletions
|
@ -421,6 +421,7 @@ export default {
|
|||
},
|
||||
onClearClick(event) {
|
||||
this.updateModel(event, null);
|
||||
this.resetFilterOnClear && (this.filterValue = null);
|
||||
},
|
||||
onFirstHiddenFocus(event) {
|
||||
const focusableEl = event.relatedTarget === this.$refs.focusInput ? DomHandler.getFirstFocusableElement(this.overlay, ':not([data-p-hidden-focusable="true"])') : this.$refs.focusInput;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue