Opened 13 years ago

Closed 13 years ago

Last modified 10 years ago

#5898 closed bug (worksforme)

$('button').button("enable") re-creates the button

Reported by: plaflamme Owned by:
Priority: minor Milestone:
Component: ui.button Version: 1.8.3
Keywords: Cc:
Blocked by: Blocking:


Calling "enable" after a "disable" will re-create the spans inside the <button> element.

To reproduce, browse to the button demo (here) and issue this JS repeatedly:

$('div.demo button').button('disable').button('enable')

You will notice that the <button> element will have a new <span> child added on every call.

Change History (3)

comment:1 Changed 13 years ago by rdworth

Resolution: worksforme
Status: newclosed

While what you describe is true in terms of the button re-creating the span, I'm pretty sure what you've found is a bug in Firebug, if that's where you're seeing multiple spans. But there's only one span, you can see by

alert( $('div.demo button').find('span').length )

comment:2 Changed 12 years ago by plaflamme

Indeed I was seeing this in firebug.


comment:3 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.