Skip to main content

Search and Top Navigation

#6242 closed bug (fixed)

Opened October 29, 2010 12:11PM UTC

Closed May 13, 2011 12:48AM UTC

Last modified May 13, 2011 12:49AM UTC

Button .enable() strange behavior on Webkit (Google Chrome, Safari)

Reported by: morozov Owned by:
Priority: minor Milestone: 1.8.14
Component: ui.button Version: 1.8.1
Keywords: button enable blur Cc:
Blocked by: Blocking:
Description

If to enable a button right before it's clicked, it seems to be disabled.

A way to reproduce:

  • open attached file
  • put cursor to the text input
  • click the button

the "click" event was not fired

Attachments (1)
Change History (10)

Changed October 29, 2010 12:23PM UTC by scottgonzalez comment:1

milestone: TBD1.9

Changed March 28, 2011 08:19PM UTC by danbhfive comment:2

milestone: 1.91.8.10

this is a valid bug, here is the test case: http://jsbin.com/ohene4

It looks like it was resolved in 1.8.10

Changed March 28, 2011 08:19PM UTC by danbhfive comment:3

resolution: → fixed
status: newclosed

Changed March 28, 2011 08:32PM UTC by scottgonzalez comment:4

milestone: 1.8.10
resolution: fixed
status: closedreopened

I still see the problem in 1.8.10 (and 1.8.11).

Changed March 28, 2011 08:32PM UTC by scottgonzalez comment:5

milestone: → 1.9
status: reopenedopen

Changed March 28, 2011 08:48PM UTC by danbhfive comment:6

My mistake. Looks like if you click the edge of the button, it works. But if you click the text, it doesn't work. plot thickens...

Changed May 12, 2011 05:24AM UTC by dougneiner comment:7

This problem is caused by the call to _resetButton that was triggered as a result of changing the disabled option.

Fix here: https://github.com/jquery/jquery-ui/pull/256

Demo here: http://jsbin.com/ohene4/9

Changed May 13, 2011 12:48AM UTC by Scott González comment:8

resolution: → fixed
status: openclosed

Merge pull request #256 from dcneiner/button-blur

Fixed #6242

Changeset: dd00f7f3b4ebfa8d2df6119148bf5120721d3abc

Changed May 13, 2011 12:49AM UTC by Doug Neiner comment:9

Button: no longer calls _resetButton() after changing the disabled option. Fixed #6242 - Button .enable() strange behavior on Webkit (Google Chrome, Safari)

(cherry picked from commit 8df834f68c4337cb6d128360c76a4621f050bd60)

Changeset: 3842fa9f948283fa4bab9a99ad8d0a8a2adcc175

Changed May 13, 2011 12:49AM UTC by scottgonzalez comment:10

milestone: 1.91.8.14