filament/filament
v3.2.14
10.42.0
v3.4.1
8.2.15
If you have a wizard with a hidden step, and you conditionally show that step, the file upload after that hidden step will not work property and with throw the following JS error
Uncaught (in promise) TypeError: this.pond is null
This issue was introduced in version 3.1.24 (I believe this was the PR #10371)
The file upload works properly even if it's after a hidden-step-turned-visible
Here is a simple form that can reproduce this
Wizard::make([
Wizard\Step::make('Step 1')
->schema([
Toggle::make('something')
->label('Show step 2')
->live()
]),
Wizard\Step::make('Hidden step')
->visible(fn (Get $get) => $get('something'))
->schema([]), // nothing to do here
Wizard\Step::make('Step 3')
->schema([
FileUpload::make('media')
->hint('Open the browser console and try to upload a file')
])
])
https://github.com/sprtk-ches/laravel-filament
Uncaught (in promise) TypeError: this.pond is null
B http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:40
i http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
setTimeout handler*Ml http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
i http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
i http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
fire http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
b http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
E http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
setTimeout handler*yd/E/</< http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
E http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
E http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
_write http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
<anonymous> http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
<anonymous> http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:2
d http://filament.local/js/filament/forms/components/file-upload.js?v=3.2.14.0:1
...
file-upload.js:40:85386
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too