#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: |
Description
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 9 years ago by
Component: | ui.widget → ui.button |
---|---|
Status: | new → open |
Summary: | Using form="" attribute kills buttonset events → Button: Support the HTML5 form attribute |
comment:2 Changed 9 years ago by
Not sure what the best solution would be, but ran into the issue on a page. Basic fix would be:
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='" + form.name + "']" ); } }
Version 0, edited 9 years ago
by
(next)
comment:3 Changed 8 years ago by
Resolution: | → fixed |
---|---|
Status: | open → closed |
Checkboxradio: Properly find radio groups from the associated form
Fixes #9973 Closes gh-1631
Changeset: e77fbe5388abeeb1d0f8f377161a0fc039897594
comment:4 Changed 8 years ago by
Milestone: | none → 1.12.0 |
---|
Note: See
TracTickets for help on using
tickets.
Reduced: http://jsfiddle.net/tj_vantoll/twmGK/