Opened 10 years ago
Closed 10 years ago
#9009 closed bug (notabug)
Using buttonset() with particular selector lead to wrong behavior and JavaScript error
Reported by: | RedXIII | Owned by: | RedXIII |
---|---|---|---|
Priority: | minor | Milestone: | none |
Component: | ui.button | Version: | 1.10.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When I try to apply buttonset() to an element by the following selector: "#id .style", each time I click on the buttons, browser reports about uncaught error. For example (IE9):
SCRIPT5022: cannot call methods on button prior to initialization; attempted to call method 'widget' jquery-1.9.0.js, line 490 character 3
Also, buttons in group behave improperly: selection ("checked") flag persists on previously selected buttons.
Example is here: http://jsfiddle.net/RedXIII/ud2Ch/
Browsers tested: IE9, Chrome, Safari (latest versions).
Change History (3)
comment:1 Changed 10 years ago by
Owner: | set to RedXIII |
---|---|
Status: | new → pending |
comment:2 Changed 10 years ago by
Status: | pending → new |
---|
No, I don't have a use case. It happen occasionally by mistake. Of course, buttons in example should be placed in a different groups. Then all works properly.
I think, bug can be closed, since it's not a bug, but rather unpredictable behavior.
comment:3 Changed 10 years ago by
Resolution: | → notabug |
---|---|
Status: | new → closed |
Can you provide a valid use case for creating a button set of only part of the radio inputs in a radio group? How would the user know that the other 2 radio buttons are part of the same group, and that selecting one of them will unselect the a button?