Fix getting SVGs classes
[MAILPOET-1811]
This commit is contained in:
committed by
Pavel Dohnal
parent
c2d0dd7d00
commit
9e3c26dfd8
@@ -106,10 +106,12 @@ Module.ContainerBlocksView = Marionette.CollectionView.extend({
|
||||
this.triggerMethod('resizeStop', event);
|
||||
},
|
||||
removeFocusFromAnyActiveElement: function removeFocusFromAnyActiveElement(event) {
|
||||
var elementClass;
|
||||
if (!event || !event.target) {
|
||||
return;
|
||||
}
|
||||
if (event.target.className.indexOf('mailpoet_container_horizontal') === -1) {
|
||||
elementClass = event.target.getAttribute('class');
|
||||
if (elementClass && elementClass.indexOf('mailpoet_container_horizontal') === -1) {
|
||||
return;
|
||||
}
|
||||
document.activeElement.blur();
|
||||
|
Reference in New Issue
Block a user