Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add onClear event to dropdown #10712

Closed
1 of 3 tasks
ajsaraujo opened this issue Oct 6, 2021 · 0 comments
Closed
1 of 3 tasks

Add onClear event to dropdown #10712

ajsaraujo opened this issue Oct 6, 2021 · 0 comments
Assignees
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

Comments

@ajsaraujo
Copy link

ajsaraujo commented Oct 6, 2021

I'm submitting a ...

  • bug report
  • feature request
  • support request

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? An onClear 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 a onClear event would be more semantic.

@yigitfindikli yigitfindikli added the Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add label Oct 13, 2021
@yigitfindikli yigitfindikli self-assigned this Oct 13, 2021
@yigitfindikli yigitfindikli added this to the 12.2.1 milestone Oct 13, 2021
@yigitfindikli yigitfindikli added LTS-FIXED-11.4.9 Fixed in PrimeNG LTS 11.4.9 and removed LTS-PORTABLE labels Dec 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants