Fix getting SVGs classes

[MAILPOET-1811]
This commit is contained in:
Ján Mikláš
2019-05-20 17:13:09 +02:00
committed by Pavel Dohnal
parent c2d0dd7d00
commit 9e3c26dfd8

View File

@@ -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();