Skip to content

Commit

Permalink
fix ignoreMutation
Browse files Browse the repository at this point in the history
  • Loading branch information
ocavue committed Dec 24, 2024
1 parent 418987d commit 4e2b0b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tableview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Node } from 'prosemirror-model';
import { NodeView } from 'prosemirror-view';
import { NodeView, ViewMutationRecord } from 'prosemirror-view';
import { CellAttrs } from './util';

/**
Expand Down Expand Up @@ -36,7 +36,7 @@ export class TableView implements NodeView {
return true;
}

ignoreMutation(record: MutationRecord): boolean {
ignoreMutation(record: ViewMutationRecord): boolean {
return (
record.type == 'attributes' &&
(record.target == this.table || this.colgroup.contains(record.target))
Expand Down

0 comments on commit 4e2b0b2

Please sign in to comment.