Skip to content

[Dropdown] The selected item should change when reset the form #650

Discussion options

You must be logged in to vote

Here is a proposal: https://jsfiddle.net/se37b2qh/
The onchange is still triggered, but you check for the onchange event on the dropdown directly if the value was empty -> then it was a reset and your code is not doing any ajax-calls

There is too much stuff to consider and change and probably breaks other code if we would change the set.value method to not trigger the onchange event in some cases (and there can be a lot), so for the time being, i suggest you catch this in your own code if its not possible for you to use the "offical" FUI way

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

ko2in
Apr 10, 2019
Collaborator Author

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

ko2in
Apr 10, 2019
Collaborator Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #650 on October 07, 2020 20:39.