Skip to content

Commit a98baea

Browse files
authored
hotfix: 3.0.2 mishaps (#257)
* Fix error handling in page builder * Revert error prop pass down style in page builder view * Fix form action mounting in the page builder
1 parent 69e4eda commit a98baea

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

resources/views/components/forms/components/page-builder.blade.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
@php
22
use Filament\Actions\Action;
33
use Z3d0X\FilamentFabricator\Enums\BlockPickerStyle;
4+
use Illuminate\Support\MessageBag;
5+
use Illuminate\Support\ViewErrorBag;
46
57
$containers = $getChildComponentContainers();
68
$blockPickerBlocks = $getBlockPickerBlocks();
@@ -30,7 +32,7 @@
3032
$statePath = $getStatePath();
3133
@endphp
3234

33-
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field" :errors="$errors">
35+
<x-dynamic-component :component="$getFieldWrapperView()" :field="$field">
3436
<div
3537
x-data="{}"
3638
{{
@@ -68,7 +70,7 @@
6870
<ul
6971
x-sortable
7072
data-sortable-animation-duration="{{ $getReorderAnimationDuration() }}"
71-
wire:end.stop="{{ 'mountFormComponentAction(\'' . $statePath . '\', \'reorder\', { items: $event.target.sortable.toArray() })' }}"
73+
wire:end.stop="{{ 'mountAction(\'reorder\', { items: $event.target.sortable.toArray() }, { schemaComponent: \'' . $key . '\' })' }}"
7274
class="space-y-4"
7375
>
7476
@php

0 commit comments

Comments
 (0)