-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Dropdown onChange fires on re-selection of same item #2760
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
Milestone
Comments
I can replicate the issue.The onchange event is emitted on click of list, thats why the same item selection also causes the change event. |
So is this accepted as a bug? |
@sudheerj Is this going to be fixed in the next release? |
#2353 (the same Problem) |
Bump! |
Set to 4.1.0. |
Hi, I have still this problem while selecting same item. Is this issue fixed, or not? How could i realize selecting same item? Thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Type: Bug
Issue contains a bug related to a specific component. Something about the component is not working
I'm submitting a ... (check one with "x")
Current behavior
On re-selection of the same dropdown item,
onChange
event is firedExpected behavior
onChange
should be fired only when the selection changes. Re-selection of the same item is technically not a change.Minimal reproduction of the problem with instructions
This is not needed I guess as the implementation is fairly straightforward.
Please tell us about your environment:
Windows 10, VS 2017, NPM v3.10.9
Angular version: 4.1.1
PrimeNG version: 4.0.0
Browser: [all]
Language: [TypeScript 2.3.2]
Node (for AoT issues):
node --version
= 7.2.0The text was updated successfully, but these errors were encountered: