@lvce-editor/renderer-process 30.64.9 → 30.64.10
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.
|
@@ -9361,10 +9361,12 @@ const focusCallback = {
|
|
|
9361
9361
|
selector: ''
|
|
9362
9362
|
};
|
|
9363
9363
|
const resetFocusCallback = () => {
|
|
9364
|
+
document.removeEventListener('focusin', resetFocusCallback, true);
|
|
9364
9365
|
focusCallback.id = 0;
|
|
9365
9366
|
focusCallback.selector = '';
|
|
9366
9367
|
};
|
|
9367
9368
|
const focusSelector = (viewletId, selector) => {
|
|
9369
|
+
resetFocusCallback();
|
|
9368
9370
|
const instance = get$b(viewletId);
|
|
9369
9371
|
if (!instance) {
|
|
9370
9372
|
return;
|
|
@@ -9382,6 +9384,9 @@ const focusSelector = (viewletId, selector) => {
|
|
|
9382
9384
|
} else {
|
|
9383
9385
|
focusCallback.id = viewletId;
|
|
9384
9386
|
focusCallback.selector = selector;
|
|
9387
|
+
document.addEventListener('focusin', resetFocusCallback, {
|
|
9388
|
+
capture: true
|
|
9389
|
+
});
|
|
9385
9390
|
}
|
|
9386
9391
|
}
|
|
9387
9392
|
};
|