F
Filament15mo 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
awcodes15mo 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
DanielOP15mo 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
sm15mo ago
Laravel
Events | Laravel
A full-stack framework for Laravel that takes the pain out of building dynamic UIs.
Want results from more Discord servers?
Add your server