fix(popup_editor): block popup not working

This commit is contained in:
Elian Doran
2025-07-10 20:54:50 +03:00
parent f04b75fd36
commit 97ea3ac3fc
3 changed files with 6 additions and 3 deletions

View File

@@ -96,7 +96,9 @@ export default class PopupEditorDialog extends Container<BasicWidget> {
async openInPopupEvent({ noteIdOrPath }: EventData<"openInPopup">) {
if (await this.refresh(noteIdOrPath)) {
const $dialog = await openDialog(this.$widget);
const $dialog = await openDialog(this.$widget, false, {
focus: false
});
$dialog.on("shown.bs.modal", () => {
// 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.