F
Filament17mo ago
Daniel

Event when modal has benne opened?

Is there any event getting fired when a modal has been open? I do have to make some size calculations for a canvas width (in the modal) after it has been opened.
3 Replies
awcodes
awcodes17mo ago
‘open-modal’ is the event that triggers it. There is also a ‘modal-opened’ that gets fired but can’t promise that one will stay since I think it’s causing double calls to the backend.
Daniel
DanielOP17mo ago
Hm, I've tried:
window.addEventListener('open-modal', function(e) {
console.log('Modal open');
});
window.addEventListener('open-modal', function(e) {
console.log('Modal open');
});
but it doesn't get fired.
sm
sm17mo ago
Laravel
Events | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.

Did you find this page helpful?