fix: update mindmap node size during IME composition

Fixes toeverything/AFFiNE#11515
This commit is contained in:
catsjuice
2026-02-26 15:14:23 +08:00
parent 895e774569
commit 505505a1e7

View File

@@ -280,6 +280,21 @@ export class EdgelessShapeTextEditor extends WithDisposable(ShadowlessElement) {
this._unmount();
}
);
this.disposables.addFromEvent(
this.inlineEditorContainer,
'compositionupdate',
() => {
this._updateElementWH();
}
);
this.disposables.addFromEvent(
this.inlineEditorContainer,
'compositionend',
() => {
this._updateElementWH();
}
);
})
.catch(console.error);