Modal with id dialog does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?. #269
Unanswered
barnaclebarnes
asked this question in
Q&A
Replies: 1 comment
-
That should work. I don't think that error is coming from Stimulus. After a quick Google, it looks like it is an issue with Flowbite. Maybe there is some conflict if it also uses the https://github.com/themesberg/flowbite/blob/main/src/components/modal/index.ts |
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've got this as my HTML:
But I'm getting an error:
Modal with id dialog does not exist. Are you sure that the data-modal-target attribute points to the correct modal id?.
As far as I can see,
data-modal-target="dialog"
is being set correctly. So not sure why I am getting that error? Any ideas?Beta Was this translation helpful? Give feedback.
All reactions