[Bug]: Dynamic node spec is not recomputed when node is updated #6197
Labels
Category: Open Source
The issue or pull reuqest is related to the open source packages of Tiptap.
Type: Bug
The issue or pullrequest is related to a bug
Affected Packages
core, react
Version(s)
2.11.4
Bug Description
Up until recently I was able to dynamically set the properties of a NodeSpec by returning a function, for example
Which works fine.,
However this function is not called/recomputed when storage is updated or attributes are changed on the node. Infact it seems this function is never called again.
For example, I have a command like so:
Which I would expect to trigger
draggable
to be re-computedI believe this to be a regression, as this 100% used to work as my code has not been touched in this area for well over a year.
Browser Used
Chrome
Code Example URL
No response
Expected Behavior
dynamic node spec functions are called again whenever the node in question is updated
Additional Context (Optional)
No response
Dependency Updates
The text was updated successfully, but these errors were encountered: