Opened 3 years ago

Closed 17 months ago

Last modified 17 months ago

#9973 closed bug (fixed)

Button: Support the HTML5 form attribute

Reported by: shannonhochkins Owned by:
Priority: minor Milestone: 1.12.0
Component: ui.button Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:


I've created a jsfiddle for you to see the issue.

I believe this is becuase in the ui.widget, it's looking for the closest 'form' to reset the events.

Change History (4)

comment:1 Changed 3 years ago by tj.vantoll

  • Component changed from ui.widget to ui.button
  • Status changed from new to open
  • Summary changed from Using form="" attribute kills buttonset events to Button: Support the HTML5 form attribute

comment:2 Changed 3 years ago by epascarello

Not sure what the best solution would be, but I ran into the issue on a page I was working on. Basic fix would be one of two ways:

if ( form ) { 
    radios = $( form ).find( "[name='" + name + "'][type=radio]" );
    if (!radios.length) {  //no child element in the form
        //using old school form element array with names
        radios = $(form[name]);
        //or a selector looking for name attribute
        radios = $( "[name='" + name + "'][type=radio][form='" + + "']" );
Last edited 3 years ago by epascarello (previous) (diff)

comment:3 Changed 17 months ago by Scott González

  • Resolution set to fixed
  • Status changed from open to closed

Checkboxradio: Properly find radio groups from the associated form

Fixes #9973 Closes gh-1631

Changeset: e77fbe5388abeeb1d0f8f377161a0fc039897594

comment:4 Changed 17 months ago by scottgonzalez

  • Milestone changed from none to 1.12.0
Note: See TracTickets for help on using tickets.