Skip to content

Commit c7fd967

Browse files
authored
fix(Math): allow to modify dom-attributes of math nodes (#197)
1 parent 2615d21 commit c7fd967

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/extensions/yfm/Math/view-and-edit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export abstract class MathNodeView implements NodeView {
8888

8989
ignoreMutation(mutation: MutationRecord): boolean {
9090
// @ts-expect-error
91-
if (mutation.type === 'selection') return true;
91+
if (mutation.type === 'selection' || mutation.type === 'attributes') return true;
9292

9393
return (
9494
mutation.type === 'childList' &&

0 commit comments

Comments
 (0)