We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The event listeners on the overlay is not working.
Using Vue3
import { HSOverlay } from 'preline' onMounted(() => { const modalElement = document.querySelector('#hs-scan') as HTMLElement const modal = new HSOverlay(modalElement) console.log(modal) if (modal) { modal.on('open', () => { console.log('Modal opened') // modalIsOpen.value = true // console.log(modalIsOpen.value) }) modal.on('close', () => { console.log('Modal closed') // modalIsOpen.value = false // console.log(modalIsOpen.value) }) } })
Should print the corresponding strings when opened and closed
Doesn't print anything
No response
The text was updated successfully, but these errors were encountered:
I ended up using vueuse to check if its open. https://vueuse.org/core/useElementVisibility/
Sorry, something went wrong.
Can you share your solution?
@Fed3x
No branches or pull requests
Summary
The event listeners on the overlay is not working.
Using Vue3
Steps to Reproduce
Expected Behavior
Should print the corresponding strings when opened and closed
Actual Behavior
Doesn't print anything
Screenshots
No response
The text was updated successfully, but these errors were encountered: