Modals don't work when async render custom layout with modals #2508
Unanswered
FireEagle25
asked this question in
Q&A
Replies: 0 comments
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.
-
Hello. I have a blockEditor custom layout with modals. When I use it like usual all is ok, but now I need to show it in tabs when the select is some value. And all is ok too, but when I tried to push the add block button which call modal function it's not working.
It happen only if this layout was not on page when it was loaded. If I load page contains it then hide it and show it again all is work.
Laravel logs are clear.
Browser console error info:
Error invoking action "click->modal-toggle#targetModal"
TypeError: null is not an object (evaluating 'this.application.getControllerForElementAndIdentifier(this.modal,"modal").open')
value — orchid.js:16:134820
invokeWithEvent — orchid.js:2:5490
handleEvent — orchid.js:2:4890
handleEvent — orchid.js:2:843
Beta Was this translation helpful? Give feedback.
All reactions