Skip to content

Commit

Permalink
fix(Math): allow to modify dom-attributes of math nodes (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m1d0v authored Feb 20, 2024
1 parent 2615d21 commit c7fd967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/yfm/Math/view-and-edit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export abstract class MathNodeView implements NodeView {

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

return (
mutation.type === 'childList' &&
Expand Down

0 comments on commit c7fd967

Please sign in to comment.