-
Notifications
You must be signed in to change notification settings - Fork 531
Closed
Description
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
).