I’ve a chechbox in my application.
When I click it the onclick event should fire.
On Chrome it works in both cases.
In Firefox it works only when I check the checkbox but when I uncheck it, it doesn’ fire.
How can I solve it ?
Tks
Hi tullio0106,
In order for you to achieve the functionality you want you will have to bind for the onchange event.
I have a code snippet using your code example: <smart-check-box id="checkBox" onchange="alert('Done');">Check Box</smart-check-box>
Also you can take a look at the following demo: https://www.htmlelements.com/demos/checkbox/events/
Please, do not hesitate to contact us if you have any additional questions.
Best regards,
Yavor Dashev
Smart UI Team https://www.htmlelements.com/