Skip to content

Checklist doesn't trigger event at each value change #142

@lionel-bijaoui

Description

@lionel-bijaoui

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions