Skip to content
Discussion options

You must be logged in to vote

@kfkok thanks for reporting!

I haven't used the Wire Elements Modal, but going off what you described, the reason it won't be working is because Livewire (currently) won't dynamically load scripts. It's an issue with any Alpine based component using an external function.

Personally, I'm hesitant to assign package scripts to the window object, as it runs the risk of conflicts.

One work around would be, if you add an autocomplete component somewhere on the page and hide it. Then when the modal dynamically loads one, it will work, as the function already exists on the page.

This issue is something we've been working on fixing in Livewire, but we ran into some breaking changes, so it's now go…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@joshhanley
Comment options

@flameblue59
Comment options

@joshhanley
Comment options

@flameblue59
Comment options

@joshhanley
Comment options

Answer selected by kfkok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants