Ran into a similar issue with integrating a Radix dropdown menu with ProseMirror. When modal=true, the menu component uses GitHub - theKashey/aria-hidden: 🗣Cast aria-hidden to everything, except... to add aria-hidden and data-aria-hidden to all other elements.
For some reason, only with a CodeMirror Nodeview, it causes the node selection to be lost because there are mutations pending when domObsever.stop() is called when view dom is blurred.
There are no mutations if I don’t use a CodeMirror node view.
ignoreMutation() {
return true;
}
stopEvent(event: Event) {
return this.cmView && this.cmView.dom.contains((event as any).target);
}
