bootstrap-switch icon indicating copy to clipboard operation
bootstrap-switch copied to clipboard

Label's click in readonly switch

Open PSF1 opened this issue 10 years ago • 1 comments

Hi,

I found a small bug:

When you have a readonly switch with a label associated to it and you do a click over the label then the switch change her value.

To workaround the problem you need unset the "for" attribute of the label.

Thanks :)

PSF1 avatar May 27 '15 14:05 PSF1

@PSF1 Thank you for this! I know this comment/issue is old, but it was helpful. We were experiencing the same issue in our application and removing the for attribute fixed the label from toggling the input.

Lori-Becker avatar Feb 22 '23 20:02 Lori-Becker