F
Filament16mo ago
sm

Using ->multiple() on a Select inside a repeatable with ->options() results in a JS error.

I've got a Select with ->multiple()->options(function() { }) inside a repeatable, when I add and delete repeatables, it looks like state gets messed up (an empty item gets added back the next time I click add, i.e, instead of 1 new repeatable, I get two). There's no way to remove repeatables at this point (all deletes just re-appear). After the first delete operation, I see an error with the Select component in the console:
select.js?v=3.0.11.0:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'clearStore')
at Proxy.refreshChoices (select.js?v=3.0.11.0:1:95575)
at async select.js?v=3.0.11.0:1:95382
select.js?v=3.0.11.0:1 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'clearStore')
at Proxy.refreshChoices (select.js?v=3.0.11.0:1:95575)
at async select.js?v=3.0.11.0:1:95382
Any help would be appreciated!
2 Replies
Lara Zeus
Lara Zeus16mo ago
GitHub
unexpected behavior in repeater when perform actions · Issue #7485 ...
Package filament/filament Package Version v3.0.8 Laravel Version 10.17.1 Livewire Version v3.0.0-beta.7 PHP Version 8.1.21 Problem description There is unexpected behavior when performing some acti...
sm
smOP16mo ago
Just found that issue as well!
Want results from more Discord servers?
Add your server