Commit 2b2997b
root
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
1 file changed
+0
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
| |||
0 commit comments