mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-25 04:19:02 +08:00
fix a bug
This commit is contained in:
parent
8aca2852ba
commit
7e0c0b7a28
@ -11,5 +11,5 @@ export default function nodeIsActive(state: EditorState, type: NodeType, attrs =
|
||||
return !!node
|
||||
}
|
||||
|
||||
return node.node.hasMarkup(type, attrs)
|
||||
return node.node.hasMarkup(type, { ...node.node.attrs, ...attrs })
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user