mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 08:15:52 +01:00
fix(popup_editor): block toolbar from behind modal interfering
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user