Parsely 2.4.4 does not "see" change events when using custom <select> libraries like chosen
See original GitHub issueParsley does not correctly validate when a select item is changed when using almost any jquery plugin or JS library that customizes <select>
dropdowns and the onchange event is raised by the library. It seems inputevent.js library that Parsely now uses is eating this event as ‘fake’
I’ve tested v2.0.7 vs 2.4.4 and can reproduce this bug:
V2.0.7: In the following example, https://jsfiddle.net/wph81s72/, if you change the dropdown the validation is performed on each change. For example, select a country and then change it back to “Select country…” and note that the validation message is displayed without needing to click the submit button. This is good.
In this example jsfiddle, using the latest version of Parsley, this functionality is now broken. No events are actually received by Parsley for onchange due to I think the inputevent library seeing them as fake events as they’re raised by chosen.js to simulate the select element being changed.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5
Top GitHub Comments
Sorry about above formatting, for some reason whatever markdown I enter is stripped 😕
FYI,
chosen
1.7.0 has been released and should address this issue.