Fix double clicking on text closing TinyMCE instead of selecting word

[MAILPOET-2096]
This commit is contained in:
Ján Mikláš
2019-05-22 14:57:48 +02:00
committed by M. Shull
parent 9e3c26dfd8
commit 80013952ca

View File

@@ -111,7 +111,7 @@ Module.ContainerBlocksView = Marionette.CollectionView.extend({
return;
}
elementClass = event.target.getAttribute('class');
if (elementClass && elementClass.indexOf('mailpoet_container_horizontal') === -1) {
if (!elementClass || elementClass.indexOf('mailpoet_container_horizontal') === -1) {
return;
}
document.activeElement.blur();