@innovastudio/contentbuilder 1.5.73 → 1.5.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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();
|