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:


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:

Browsers tested: IE9, Chrome, Safari (latest versions).

Change History (3)

comment:1 Changed 10 years ago by petersendidit

Owner: set to RedXIII
Status: newpending

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?

comment:2 Changed 10 years ago by RedXIII

Status: pendingnew

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 tj.vantoll

Resolution: notabug
Status: newclosed
Note: See TracTickets for help on using tickets.