question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Checklist doesn't trigger event at each value change

See original GitHub issue

From #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:closed
  • Created 7 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
icebobcommented, Mar 23, 2017

No problem. I don’t have found problem with change event. I reverted in checklist field. https://github.com/icebob/vue-form-generator/commit/e6a2b9accd7e56499b6716d226b0356c96113b97

0reactions
lionel-bijaouicommented, Mar 23, 2017

When 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 with change event. I need to revert my changes. FML 😢 Sorry everyone…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found