Getting "[Quasar] Incorrectly defined Dialog component" on wrapped dialogs #16153
Labels
area/components
area/plugins
bug/1-hard-to-reproduce
A reproduction is available, but it's hard to reproduce, so it has a lower priority.
bug/1-repro-available
A reproduction is available and needs to be confirmed.
flavour/quasar-cli-webpack
kind/bug 🐞
Qv2 🔝
Quasar v2 issues
What happened?
I had to wrap a Dialog custom component that uses the quasar Dialog plugin, in order to pass it to the Dialog.create function.
My components are:
The main dialog component
The wrapper of the dialog
And then I was opening it like that:
What did you expect to happen?
If you copy that exact code it will work with no problem.
If you add a comment in the wrapper component like so:
the browser console will throw you a runtime error:
[Quasar] Incorrectly defined Dialog component
Reproduction URL
https://codesandbox.io/p/sandbox/romantic-scooby-rwn2l4?file=%2Fsrc%2Fcomponents%2Fdialog_wrapper_component.vue%3A2%2C49
How to reproduce?
Create the 2 components by cooping the code and call the wrapper one
Flavour
Quasar CLI with Webpack (@quasar/cli | @quasar/app-webpack)
Areas
Components (quasar), Plugins (quasar)
Platforms/Browsers
Chrome
Quasar info output
Relevant log output
No response
Additional context
That could be caused by how props are passed through components.
It might consider the comment as a tag and for that reason props/events are blocked.
Not sure though...
The text was updated successfully, but these errors were encountered: