New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(modal): provide an example to bind event listeners #1611
Conversation
@noook When looking at the preview, the |
I noticed it as well, tried to reproduce locally but I can't, it works just fine locally |
@benjamincanac This seems to be due to the server returning Nuxt's 404 error page for the requested component instead of the component's code. I wonder what's causing this π€ |
It might be easier to just display the code group and use the |
What do you have in mind ? Do you mean using the code group and copy the content of the two files in it, and display the preview underneath ? The idea was not to have to copy the code so that it is synced with what's actually displayed |
Then you might have to move them out of the |
@benjamincanac Hacked it π I checked what was going on, and it seems that the components meta-data are generated during the pre-rendering, and as the component is only displayed under the second tab it is not shown on pre-render. This hack just references the component so it is loaded as built time, but it doesn't show anything as there is no code nor preview. |
Thanks @noook! π |
π Linked issue
#1604
β Type of change
π Description
This PR adds a new example on how to use event listeners with
useModal
π Checklist