You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I’m using the Repeater field in Filament to allow users to add multiple TipTapEditor instances. Each TipTapEditor is configured with specific tools and blocks. Here’s the relevant code snippet:
The issue I’m facing is that when I delete a block (or make certain changes) in one TipTapEditor, it affects the content of other TipTapEditor instances within the same Repeater. It seems like their states are not properly isolated, causing them to interfere with each other.
I suspect this might be due to:
1. A shared state or binding between the editors.
2. The name attribute ('personal_details') not being scoped properly for each editor within the Repeater.
I’ve tried checking the documentation and debugging the state but haven’t found a solution yet. Has anyone encountered this issue or know how to ensure that each editor maintains its own state within a Repeater?
Here is a complete example of the bug:
Login credentials: [email protected]:admin
Open the ‘Forms’ menu in the Filament admin panel.
Create three editors.
Add two text fields to each editor.
Delete the text fields from the editors and encounter the issue.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I’m using the Repeater field in Filament to allow users to add multiple TipTapEditor instances. Each TipTapEditor is configured with specific tools and blocks. Here’s the relevant code snippet:
The issue I’m facing is that when I delete a block (or make certain changes) in one TipTapEditor, it affects the content of other TipTapEditor instances within the same Repeater. It seems like their states are not properly isolated, causing them to interfere with each other.
I suspect this might be due to:
1. A shared state or binding between the editors.
2. The name attribute ('personal_details') not being scoped properly for each editor within the Repeater.
I’ve tried checking the documentation and debugging the state but haven’t found a solution yet. Has anyone encountered this issue or know how to ensure that each editor maintains its own state within a Repeater?
Here is a complete example of the bug:
Login credentials: [email protected]:admin
https://github.com/aboutnima/filament-tiptapeditor-example
Any help or guidance would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions