From b6617e4dff3b2d991c850a7a0ff0a1b9b9a4c366 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabr=C3=ADcio=20Matt=C3=A9?=
Date: Sun, 25 Nov 2012 16:09:33 -0200
Subject: [PATCH 1/5] Button: Let change handler handle display and aria
update. Fixed #5518 - Button: Incorrect state after double click in Firefox
---
ui/jquery.ui.button.js | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js
index d6eed67dcc2..d630b6f06ad 100644
--- a/ui/jquery.ui.button.js
+++ b/ui/jquery.ui.button.js
@@ -147,8 +147,9 @@ $.widget( "ui.button", {
if ( options.disabled || clickDragged ) {
return false;
}
- $( this ).toggleClass( "ui-state-active" );
- that.buttonElement.attr( "aria-pressed", that.element[0].checked );
+ // Fix #5518 - let change handler handle display and aria update
+ //$( this ).toggleClass( "ui-state-active" );
+ //that.buttonElement.attr( "aria-pressed", that.element[0].checked );
});
} else if ( this.type === "radio" ) {
this.buttonElement.bind( "click" + this.eventNamespace, function() {
From e44444f61cdb1acc32c19e77e446113cb98308d8 Mon Sep 17 00:00:00 2001
From: UltCombo
Date: Sun, 25 Nov 2012 17:58:35 -0200
Subject: [PATCH 2/5] Added Visual Test for #5518
---
tests/visual/button/tickets.html | 27 +++++++++++++++++++++++++++
tests/visual/index.html | 1 +
2 files changed, 28 insertions(+)
create mode 100644 tests/visual/button/tickets.html
diff --git a/tests/visual/button/tickets.html b/tests/visual/button/tickets.html
new file mode 100644
index 00000000000..348e3894cae
--- /dev/null
+++ b/tests/visual/button/tickets.html
@@ -0,0 +1,27 @@
+
+
+
+
+ Button Visual Test: Tickets
+
+
+
+
+
+
+
+
+ #5518 - Incorrect state after double click in Firefox
+
+ Checked state:
+ Aria state:
+
+
diff --git a/tests/visual/index.html b/tests/visual/index.html
index d8c8751f6ee..17ddd382d40 100644
--- a/tests/visual/index.html
+++ b/tests/visual/index.html
@@ -29,6 +29,7 @@ Button
Dialog
From dbdebd2cb12015477009342a1319bfb3e1b60d10 Mon Sep 17 00:00:00 2001
From: UltCombo
Date: Sun, 25 Nov 2012 18:01:13 -0200
Subject: [PATCH 3/5] Corrected Visual Test #5518
---
tests/visual/button/tickets.html | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tests/visual/button/tickets.html b/tests/visual/button/tickets.html
index 348e3894cae..937e96723ab 100644
--- a/tests/visual/button/tickets.html
+++ b/tests/visual/button/tickets.html
@@ -10,10 +10,9 @@
From 32ab12fdf40b59540d02b1a0e63a31fa670da267 Mon Sep 17 00:00:00 2001
From: UltCombo
Date: Sun, 25 Nov 2012 18:08:05 -0200
Subject: [PATCH 4/5] Prefixed IDs
---
tests/visual/button/tickets.html | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/tests/visual/button/tickets.html b/tests/visual/button/tickets.html
index 937e96723ab..ba9b2153c08 100644
--- a/tests/visual/button/tickets.html
+++ b/tests/visual/button/tickets.html
@@ -10,17 +10,17 @@
#5518 - Incorrect state after double click in Firefox
-
- Checked state:
- Aria state:
+
+ Checked state:
+ Aria state: