Skip to main content

Search and Top Navigation

#7429 closed bug (duplicate)

Opened May 27, 2011 11:12AM UTC

Closed May 27, 2011 12:03PM UTC

Last modified May 27, 2011 12:03PM UTC

ui.button widget form reset issue

Reported by: xStream Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.button Version: 1.8.13
Keywords: Cc:
Blocked by: Blocking:
Description

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)

Attachments (0)
Change History (2)

Changed May 27, 2011 12:03PM UTC by rdworth comment:1

resolution: → duplicate
status: newclosed

Changed May 27, 2011 12:03PM UTC by rdworth comment:2

Duplicate of #7261.