© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•6mo ago•
10 replies
Mitsunari

Bug: Multiple RichEditors inside a Repeater cause $rawState type error

Hi everyone 👋,

I’ve been running into a consistent issue when using more than one RichEditor inside the same Repeater item (Filament v4).

What happens
• If there is only one RichEditor in the repeater → everything works fine.
• As soon as I add a second RichEditor (e.g. activities and description), I start getting the following error on save:

Filament\Forms\Components\RichEditor::Filament\Forms\Components{closure}():
Argument #2 ($rawState) must be of type ?array, string given,
called in /vendor/filament/support/src/Concerns/EvaluatesClosures.php on line 36

It seems to happen because the Repeater is sometimes passing a string instead of an array as $rawState to the RichEditor’s closure.
I have tried:
• Using ->json() mode with proper casts.
• Using longText (HTML string) mode.
• Wrapping editors in Fieldset / Group.
• Adding mutateDehydratedStateUsing fallbacks.

But the error still occurs as long as there are multiple RichEditors within the same repeater item.

Multiple RichEditors inside the same Repeater item should work consistently without $rawState type errors.

Has anyone else experienced this? Is this a known bug in v4, or is there a recommended workaround other than limiting each repeater item to a single RichEditor?

Thanks a lot 🙏
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Intermittent RichEditor error inside Repeater: Argument #2 ($rawState) must be of type ?array, strin
FilamentFFilament / ❓┊help
6mo ago
Repeater Inside Repeater
FilamentFFilament / ❓┊help
7mo ago
$rawState Error with RichEditor
FilamentFFilament / ❓┊help
4mo ago
SpatieMediaLibraryFileUpload inside a Repeater
FilamentFFilament / ❓┊help
2y ago