@innovastudio/contentbuilder 1.5.73 → 1.5.74
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -93484,11 +93484,12 @@ Add an image for each feature.`, 'Create a new content showcasing a photo galler
|
|
93484
93484
|
|
93485
93485
|
if (!this.dom.getSelected()) {
|
93486
93486
|
let inputFocused = document.activeElement.tagName.toLowerCase() === 'input';
|
93487
|
+
let insideEditable = this.doc.activeElement && this.doc.activeElement.closest('[contenteditable]');
|
93487
93488
|
|
93488
93489
|
// if(!document.querySelector('.is-modal.active')) { // Additional (to prevent lost focus)
|
93489
93490
|
let openedModal = document.querySelector('.is-modal.active:not(.is-modal-content)');
|
93490
93491
|
if (target.closest('#glightbox-body')) openedModal = true;
|
93491
|
-
if (!openedModal && !inputFocused) {
|
93492
|
+
if (!openedModal && !inputFocused && !insideEditable) {
|
93492
93493
|
// Additional (to prevent lost focus)
|
93493
93494
|
|
93494
93495
|
util.clearActiveCell();
|