Merge pull request #205 from atlight/patch-1
Fix the cancel event function to prevent erroneous close
This commit is contained in:
@@ -319,7 +319,7 @@
|
||||
* On cancel handler for the uls menu
|
||||
*/
|
||||
cancel: function ( e ) {
|
||||
if ( e && this.$element.is( e.target ) ) {
|
||||
if ( e && ( this.$element.is( e.target ) || $.contains( this.$element[0], e.target ) ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user