fix(popup_editor): block toolbar from behind modal interfering

This commit is contained in:
Elian Doran 2025-07-11 16:51:24 +03:00
parent c7f49f0e21
commit 8dca79ecf2
No known key found for this signature in database

View file

@ -108,6 +108,11 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
await this.noteContext.setNote(noteIdOrPath);
const activeEl = document.activeElement;
if (activeEl && "blur" in activeEl) {
(activeEl as HTMLElement).blur();
}
$dialog.on("shown.bs.modal", async () => {
// Reduce the z-index of modals so that ckeditor popups are properly shown on top of it.
// The backdrop instance is not shared so it's OK to make a one-off modification.