lcollong
FabriKant d'applications web
Hi there,
On a form, if I set an element as a radio-button and add a JS event "on Click" to this element with a "console.log('ok');" code, I have the following behavior :
if you click exactly on the radio-button itself, it triggers only once for each click.
if you click on the label itself, it change the value of the button as well but triggers the event twice.
In my case, it is pretty disturbing as my code triggers an alert popup to the user. As my setup use the "button group" bootstrap arrangement, each time the user clicks on whatever value, he shows the alert popup twice...
This behavior seems to be pretty new. I did the test on a 3 month old (not updated) site and I get only one event per click whatever is the setup.
Is this normal ? If so, how could I show the alert only once ?
Thanks
On a form, if I set an element as a radio-button and add a JS event "on Click" to this element with a "console.log('ok');" code, I have the following behavior :
if you click exactly on the radio-button itself, it triggers only once for each click.
if you click on the label itself, it change the value of the button as well but triggers the event twice.
In my case, it is pretty disturbing as my code triggers an alert popup to the user. As my setup use the "button group" bootstrap arrangement, each time the user clicks on whatever value, he shows the alert popup twice...
This behavior seems to be pretty new. I did the test on a 3 month old (not updated) site and I get only one event per click whatever is the setup.
Is this normal ? If so, how could I show the alert only once ?
Thanks
Last edited: