Layout::modal()->open() doesn't work #2030
Unanswered
mixanrulezzz
asked this question in
Q&A
Replies: 1 comment
-
I confirm this happen also to me. I see that in frontend it's correctly set the data-model-open, but the method open in modal_controller is never fired:
So maybe is missing in initialize method the call to open if found data-model-open? I am still new with stimulus hotwired, so maybe I am missing something. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I tried to open modal without ModalToggle, but Layout::modal()->open(true) doesn't work. Maybe I missed adding something?
I add script
$('body').find('.modal[data-modal-open=1]').modal('show');
into my code and my modal opened, but it strange that I need to add script for thatBeta Was this translation helpful? Give feedback.
All reactions