Opened 11 years ago

Closed 10 years ago

Last modified 10 years ago

#6242 closed bug (fixed)

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)

webkit-button.html (785 bytes) - added by morozov 11 years ago.
Demo

Download all attachments as: .zip

Change History (11)

Changed 11 years ago by morozov

Attachment: webkit-button.html added

Demo

comment:1 Changed 11 years ago by Scott González

Milestone: TBD1.9

comment:2 Changed 11 years ago by danbhfive

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

comment:3 Changed 11 years ago by danbhfive

Resolution: fixed
Status: newclosed

comment:4 Changed 11 years ago by Scott González

Milestone: 1.8.10
Resolution: fixed
Status: closedreopened

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

comment:5 Changed 11 years ago by Scott González

Milestone: 1.9
Status: reopenedopen

comment:6 Changed 11 years ago by danbhfive

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

comment:7 Changed 10 years ago by dougneiner

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

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

Resolution: fixed
Status: openclosed

Merge pull request #256 from dcneiner/button-blur

Fixed #6242

Changeset: dd00f7f3b4ebfa8d2df6119148bf5120721d3abc

comment:9 Changed 10 years ago by Doug Neiner

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

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

Milestone: 1.91.8.14
Note: See TracTickets for help on using tickets.