Checklist doesn't trigger event at each value change
See original GitHub issueFrom #140
I found a bug on checklist, it don’t update the model except the first time. So I listen to model-updated on vfg:
- radios change at every click, and trigger a model-updated event.
- checklist change at the first change, but after that, if I uncheck the checkbox, or if I check another one, nothing get triggered in model-updated.
I think I found the problem. The onChanged
method is triggered by listening to the change
event. If you read the documentation about it (from MDN)
The change event is fired for
<input>
,<select>
, and<textarea>
elements when a change to the element’s value is committed by the user. Unlike the input event, the change event is not necessarily fired for each change to an element’s value.
I will do a PR where I modify the type of event listened to (from change
to input
).
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Troubleshooting an event rule that does not trigger the ... - IBM
The checklist is as follows: Step 1: Is event management enabled? Check if the event management feature is enabled (at installation it is...
Read more >html - Why does the jquery change event not trigger when I set ...
event handler is not being run when the value is set by val() , but it does run when user selects a value...
Read more >Data Validation Result to Trigger Change Event
My worksheet change event is not being triggered whenever I select a value from a data validation list. Below is my simple code:....
Read more >EventTarget.addEventListener() - Web APIs | MDN
A boolean value indicating whether events of this type will be dispatched to the registered listener before being dispatched to any EventTarget ...
Read more >[GA4] Modify and create events via the user interface
This article describes how to modify and create events in Analytics configuration. All events created in Analytics are based on existing website and...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
No problem. I don’t have found problem with
change
event. I reverted in checklist field. https://github.com/icebob/vue-form-generator/commit/e6a2b9accd7e56499b6716d226b0356c96113b97When you click multiple times on a
checklist
item. Maybe they fixed it in the latest release ? I have tested it and it work without problem withchange
event. I need to revert my changes. FML 😢 Sorry everyone…