Merge pull request #205 from atlight/patch-1

Fix the cancel event function to prevent erroneous close
This commit is contained in:
Santhosh Thottingal
2016-01-02 10:09:06 +05:30

View File

@@ -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;
}