Wappler Version : 6.8.0
Operating System : W11
Server Model: NodeJS
Not sure if this is an AC2 bug or just a general bug.
In action picker, there is a function called "select" for checkbox input elements.
Using this, when I check/uncheck the input from a button click, the checked/unchecked events which are defined on the input elements do not fire.
Code on button: dmx-on:click="chkShare.select(!chkShare.checked)"
You don't have the checked/unchecked dynamic events configured. Checking/unchecking of checkbox works fine, events are not getting fired, which is the problem.
I checked the logs and the behavior changed a while back after some discussion about when the events should trigger. We updated it to only trigger when it was from a user interaction like we also do for the change(d) event. The updated event will always trigger after any change.
The question now is probably if a method call is a user interaction or not. In html inputs do not trigger the change even when value was changed programmatically, that would include a method call.
Related topic where the checked/uncheched event triggered on each update causing issues:
For the Wappler's select function, I would suggest to add a boolean param (default false) to bubble/trigger events.
For dynamic binding purpose, the current setup does sound ok - every binding change should not invoke the dynamic events.
But having the option to invoke them on-demand seems necessary.
I've added an extra argument to the select function for the checkbox and radio components. Passing true as second argument will trigger the changed, checked / unchecked events.