Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preline Javascript component don't work on livewire modal #436

Open
clecoeur opened this issue Aug 10, 2024 · 1 comment
Open

Preline Javascript component don't work on livewire modal #436

clecoeur opened this issue Aug 10, 2024 · 1 comment

Comments

@clecoeur
Copy link

Summary

JS Component not work on modal

Steps to Reproduce

Hi,

I have a Laravel application with Livewire and a modal created via Livewire, when I try to use a Preline component requiring javascript for example select, the component does not load.

Do you have any idea how to integrate it?

Demo Link

Expected Behavior

No response

Actual Behavior

No response

Screenshots

No response

@langscot
Copy link

Without a demo link it is pretty hard to diagnose. Are you initializing your select list, either via window.HSStaticMethods.autoInit() or manually via HSSelect's constructor? Can you ensure that the DOM element is on the page at the time of initialization? If you are conditionally rendering stuff in the DOM, you will need to make sure you re-initialize your Preline components too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants