Skip to content

Commit d01e785

Browse files
committed
button: don't log a click on disabled buttons
1 parent aba705c commit d01e785

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/visual/button/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
buttons.add(buttonSets).click(function(event) {
2222
var target = $(event.target);
23-
if (target.closest('.ui-button').length) {
23+
if (target.closest('.ui-button:not(.ui-state-disabled)').length) {
2424
$("<div></div>")
2525
.text("Clicked " + (target.text() || target.val()))
2626
.appendTo("#log");

0 commit comments

Comments
 (0)