#5750 - fix outside click directive so it doesn't close dialogues from create action
This commit is contained in:
committed by
Sebastiaan Janssen
parent
178b1ccf40
commit
1a437c1c6a
@@ -131,6 +131,12 @@ angular.module('umbraco.directives')
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore clicks on dialog actions
|
||||
var actions = $(event.target).parents(".umb-action");
|
||||
if (actions.length === 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
//ignore clicks inside this element
|
||||
if ($(element).has($(event.target)).length > 0) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user