© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
16 replies
Eric

Script Doesnt Load When Using Modals

I created a filament custom field. It needs an external script to work so i add it at the bottom of the component

So far works, cool.

But now im using the field in a modal. and there, it doesnt work. the script is not being loaded.

so the question is, how to load the script when the field is inside a modal?

i've tried to remove the async and defer, but the result is the same:
<script src="https://maps.googleapis.com/maps/api/js?key={{ env('GOOGLE_MAPS_KEY') }}&libraries=places" async defer></script>
<script src="https://maps.googleapis.com/maps/api/js?key={{ env('GOOGLE_MAPS_KEY') }}&libraries=places" async defer></script>
Screenshot_2024-07-03_at_09.15.51.png
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

->autofocus doesnt work with modals
FilamentFFilament / ❓┊help
3y ago
Eager load or lazy load on modals?
FilamentFFilament / ❓┊help
2y ago
Why the autofocus doesnt work on modals?
FilamentFFilament / ❓┊help
3y ago
Modals
FilamentFFilament / ❓┊help
3y ago