Skip to content

Commit b0c3d00

Browse files
fix: disable array casting (#26)
* Fix array casting issues * wip * Fix styling
1 parent 4d04add commit b0c3d00

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Fields/RichEditor.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ public static function getDefaultConfig(): array
2929

3030
public static function make(string $name, ?Field $field = null): Input
3131
{
32-
32+
/**
33+
* @var Input $input
34+
*/
3335
$input = self::applyDefaultSettings(Input::make($name), $field);
3436

3537
$input = $input->label($field->name ?? null)
@@ -39,6 +41,9 @@ public static function make(string $name, ?Field $field = null): Input
3941
->placeholder('')
4042
->statePath($name)
4143
->live()
44+
->json(false)
45+
->beforeStateDehydrated(function () {})
46+
->saveRelationshipsUsing(function () {})
4247
->formatStateUsing(function ($state) {
4348
if (empty($state)) {
4449
return null;

0 commit comments

Comments
 (0)