Skip to main content

Search and Top Navigation

#9009 closed bug (notabug)

Opened January 23, 2013 04:45PM UTC

Closed January 24, 2013 11:40AM UTC

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).

Attachments (0)
Change History (3)

Changed January 24, 2013 01:50AM UTC by petersendidit comment:1

owner: → 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?

Changed January 24, 2013 08:53AM UTC by RedXIII comment:2

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.

Changed January 24, 2013 11:40AM UTC by tj.vantoll comment:3

resolution: → notabug
status: newclosed