From 98a68aeb30b8f97320e3d65b813f9af9ad703ee4 Mon Sep 17 00:00:00 2001 From: tanthammar Date: Sat, 27 Mar 2021 17:52:19 +0100 Subject: [PATCH] fix Trix: Alpine register style changes even if the text is not changed. --- resources/views/components/trix.blade.php | 43 +++++++++++++++-------- 1 file changed, 28 insertions(+), 15 deletions(-) diff --git a/resources/views/components/trix.blade.php b/resources/views/components/trix.blade.php index 0183dd4..0e6ddb8 100644 --- a/resources/views/components/trix.blade.php +++ b/resources/views/components/trix.blade.php @@ -1,21 +1,34 @@ -
+
- merge(['class' => $errors->has($field->key) ? $error() : $class() ]) }}> + merge(['class' => $errors->has($field->key) ? $error() : $class() ]) }}>
@if($field->includeScript) -@tfonce('styles:trix') - -@endtfonce -@tfonce('scripts:trix') - -@endtfonce -@tfonce('styles:trix-no-upload') - -@endtfonce + @tfonce('styles:trix') + + @endtfonce + @tfonce('scripts:trix') + + @endtfonce + @tfonce('styles:trix-no-upload') + + @endtfonce @endif