Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9431 closed bug (invalid)

ui.button widget form reset issue

Reported by: xStream Owned by:
Priority: low Milestone: 1.next
Component: misc Version: 1.6.1
Keywords: Cc:
Blocked by: Blocking:


In jQueryUI 1.8.13 I got next problem:

I have some forms, and have some disabled buttons out of them (made by ui.button widget). When I press reset button on any form ANY 'ui.button'-ed element on the page loose their 'disable' state.

I found that problem is next line:

$( ":ui-button", event.target.form ).each(function() {

in formResetHandler function in the widget.

event.target.form is always undefined, so selector get all elements from whole page.

I replaced it with just event.target and all works correct now (checked in Firefox 4+, Opera 10+, IE 8-9, Safari 5, Chrome 9)

Change History (1)

comment:1 Changed 12 years ago by Timmy Willison

Component: unfiledmisc
Priority: undecidedlow
Resolution: invalid
Status: newclosed

Please submit jQuery UI bugs to the jQuery UI bug tracker: http://bugs.jqueryui.com

Note: See TracTickets for help on using tickets.