Replies: 4 comments 1 reply
-
I had the same issue. |
Beta Was this translation helpful? Give feedback.
-
php artisan vendor:publish --tag=livewire-ui-modal-config in any js file:
|
Beta Was this translation helpful? Give feedback.
-
I am also facing same issue. Kindly help. |
Beta Was this translation helpful? Give feedback.
-
Ran into this today. I solved by setting init() {
setTimeout( () => {
this.modalWidth = this.getActiveComponentModalAttribute('maxWidthClass');
Livewire.on('closeModal', (force = false, skipPreviousModals = 0, destroySkipped = false) => {
this.closeModal(force, skipPreviousModals, destroySkipped);
});
Livewire.on('activeModalComponentChanged', (id) => {
this.setActiveModalComponent(id);
});
}, 0);
} |
Beta Was this translation helpful? Give feedback.
-
This package doesn't work with turbolinks enabled because I keep getting
Uncaught TypeError: Livewire.on is not a function
. I tried out a similar package https://github.com/lao9s/livewire-modal-twitter, and it works fine with turbolinks. Any fix?Beta Was this translation helpful? Give feedback.
All reactions