Add onClear event to dropdown #10712
Labels
LTS-FIXED-11.4.9
Fixed in PrimeNG LTS 11.4.9
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ...
The dropdown component has a
showClear
input - when set to true, it shows a little ❌ sign that you can click to reset the dropdown. It is very handy. You know what would be even nicer? AnonClear
event emitter. With it, we would be able to easily do something every time this button is clicked.My use case: I have two dropdowns, and when one is cleared, the other should be as well. Of course, I could listen to
onChange
and check if the new value is falsy, but aonClear
event would be more semantic.The text was updated successfully, but these errors were encountered: