Opened 4 months ago

Last modified 8 weeks ago

#15109 assigned bug

button: compatibility layer with checkboxradio breaking the prototype

Reported by: bago Owned by: arschmitz
Priority: blocker Milestone: 1.12.2
Component: ui.button Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:


Calling $('selector').button() on multiple mixed elements including both input-checkbox and simple a link doesn't work anymore with 1.12.

I created a simple jsbin to reproduce the issue:,js,console,output

Maybe the compatibility layer to call "checkboxradio" widget instead of the button widget leaves garbage in the button widget.

Change History (2)

comment:1 Changed 4 months ago by arschmitz

  • Owner set to arschmitz
  • Status changed from new to assigned

Hi thank you for reporting this. I can confirm the issue. The problem is the backcompat layer is only checking the first element when deciding which widget to call instead of looping over each. 2 side notes though. First backcompat layer will be removed in 1.13 and second the markup in your jsbin is not valid, an input cannot have content ( the label in your case ), but this is not causing the issue just wanted to mention.

comment:2 Changed 8 weeks ago by scottgonzalez

  • Milestone changed from none to 1.12.2
  • Priority changed from minor to blocker
Note: See TracTickets for help on using tickets.