mirror of
https://github.com/zadam/trilium.git
synced 2025-10-04 20:47:40 +08:00
fix(popup_editor): block toolbar from behind modal interfering
This commit is contained in:
parent
c7f49f0e21
commit
8dca79ecf2
1 changed files with 5 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue