WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2b2997b

Browse files
author
root
committed
Fix: Remove @pure directive from file input component
The @pure directive causes Blade compilation errors when used with Livewire Blaze due to the component containing dynamic translation helpers ({!! __() !!}) and PHP conditionals. Error: 'Cannot end a section without first starting one' This component cannot be safely optimized at compile-time because: 1. It uses translation helpers that need runtime evaluation 2. It contains PHP conditionals (if/else) for multiple file selection 3. The dynamic wire:model attribute binding requires runtime context Removing @pure allows the component to render correctly while still maintaining full functionality.
1 parent 7d236c6 commit 2b2997b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

stubs/resources/views/flux/input/file.blade.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
@pure
2-
31
@php
42
extract(Flux::forwardedAttributes($attributes, [
53
'name',

0 commit comments

Comments
 (0)