You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I found that modals are not working because they $watch not work in x-init if it is removed if it works
Solution
` x-init="() => {
let el = document.querySelector('#modal-id-{{ $id }}')
let modal = new bootstrap.Modal(el);
if (show) {
modal.show()
} else {
modal.hide()
}
el.addEventListener('hide.bs.modal', function (event) {
show = false
})
}"`
Desktop (please complete the following information):
OS: W11
Browser Edge
Version 101.0.1210.53
The text was updated successfully, but these errors were encountered:
Describe the bug
I found that modals are not working because they $watch not work in x-init if it is removed if it works
Solution
` x-init="() => {
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: