mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
chore: fix type for tables
This commit is contained in:
parent
148a782fca
commit
79e6f16473
@ -1,5 +1,5 @@
|
||||
import { Node as ProseMirrorNode } from '@tiptap/pm/model'
|
||||
import { NodeView } from '@tiptap/pm/view'
|
||||
import { NodeView, ViewMutationRecord } from '@tiptap/pm/view'
|
||||
|
||||
import { getColStyleDeclaration } from './utilities/colStyle.js'
|
||||
|
||||
@ -102,7 +102,7 @@ export class TableView implements NodeView {
|
||||
return true
|
||||
}
|
||||
|
||||
ignoreMutation(mutation: MutationRecord | { type: 'selection'; target: Element }) {
|
||||
ignoreMutation(mutation: ViewMutationRecord) {
|
||||
return (
|
||||
mutation.type === 'attributes'
|
||||
&& (mutation.target === this.table || this.colgroup.contains(mutation.target))
|
||||
|
Loading…
Reference in New Issue
Block a user