AC2 Bug #25 - checkbox dmx-on:changed not firing

Wappler Version : v6 beta 8

Expected behavior

What do you think should happen?

The following input should cause the action modify_instalments_surcharge to occur when the checkbox value changes.

<div class="form-check">
   <input class="form-check-input" type="checkbox" value="" id="i_pay_by_instalments" name="pay_by_instalments"
    dmx-on:changed="modify_instalments_surcharge.load({booking: booking.value, add_surcharge: i_pay_by_instalments.checked?1:0, surcharge_amount:, number_of_attendees:})">
   <label class="form-check-label" for="i_pay_by_instalments">Would you like to pay the remainder by monthly instalments?</label>

Actual behavior

What actually happens?

It does in the stable version, but not in beta 8.

In the title you say dmx-on:change is not working but the sample code shows dmx-on:updated. Which one is not working or do both not trigger?

Apologies Patrick, it is changed that isn’t working… I’ve edited the code!

Fixed in Wappler 6 beta 9

This topic was automatically closed after 42 hours. New replies are no longer allowed.