editor: remove useless event
parent
0e84a64827
commit
8569af561b
|
@ -137,7 +137,6 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
);
|
);
|
||||||
this.imageEditor.render();
|
this.imageEditor.render();
|
||||||
window.addEventListener("keydown", this.handleKeydown, true);
|
window.addEventListener("keydown", this.handleKeydown, true);
|
||||||
window.addEventListener("DOMNodeInserted", this.handleSfxModal);
|
|
||||||
|
|
||||||
// Get latest exif data
|
// Get latest exif data
|
||||||
try {
|
try {
|
||||||
|
@ -164,7 +163,6 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
this.imageEditor.terminate();
|
this.imageEditor.terminate();
|
||||||
}
|
}
|
||||||
window.removeEventListener("keydown", this.handleKeydown, true);
|
window.removeEventListener("keydown", this.handleKeydown, true);
|
||||||
window.removeEventListener("DOMNodeInserted", this.handleSfxModal);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onClose(closingReason, haveNotSavedChanges) {
|
onClose(closingReason, haveNotSavedChanges) {
|
||||||
|
@ -298,21 +296,6 @@ export default class ImageEditor extends Mixins(GlobalMixin) {
|
||||||
).click();
|
).click();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Watch out for Modal inject in document root
|
|
||||||
* That way we can adjust the focusTrap
|
|
||||||
*
|
|
||||||
* @param {Event} event Dom insertion event
|
|
||||||
*/
|
|
||||||
handleSfxModal(event) {
|
|
||||||
if (
|
|
||||||
event.target?.classList &&
|
|
||||||
event.target.classList.contains("SfxModal-Wrapper")
|
|
||||||
) {
|
|
||||||
emit("viewer:trapElements:changed", event.target);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue