mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-10-05 01:44:18 +00:00
Dialog: Modified close button binding to use event.preventDefault() instead of return false. Fixes #6766 - Dialog: Clicks on close button don't bubble.
This commit is contained in:
parent
e104f6cfa0
commit
727d00dec8
2
ui/jquery.ui.dialog.js
vendored
2
ui/jquery.ui.dialog.js
vendored
@ -140,8 +140,8 @@ $.widget("ui.dialog", {
|
||||
uiDialogTitlebarClose.removeClass( "ui-state-focus" );
|
||||
})
|
||||
.click(function( event ) {
|
||||
event.preventDefault();
|
||||
self.close( event );
|
||||
return false;
|
||||
})
|
||||
.appendTo( uiDialogTitlebar ),
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user