Skip to content
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

[Dialog Plugin] cannot use custom component with <script setup> sugar #9347

Closed
14 tasks
xuzuodong opened this issue May 20, 2021 · 1 comment
Closed
14 tasks
Labels

Comments

@xuzuodong
Copy link
Contributor

xuzuodong commented May 20, 2021

Describe the bug
Dialog Plugin provides a great way to imperatively open a dialog, which can even be a customized component. But when I use a custom component in new <script setup> way, an error occurs and the dialog cannot be opened.

Codepen/jsFiddle/Codesandbox (required)
https://codesandbox.io/s/hidden-pine-0zub9?file=/src/components/HelloWorld.vue

To Reproduce

  1. Click the link above
  2. Click <script setup> dialog button

Expected behavior
A customized dialog should open, like if you click the button on the left.

Platform (please complete the following information):
Quasar Version:
@quasar/app Version:
Quasar mode:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

Tested on:

  • SPA
  • SSR
  • PWA
  • Electron
  • Cordova
  • Capacitor
  • BEX

OS: macOS 11.3.1
Node: 14.5.3
NPM: 6.14.9
Yarn:
Browsers: Chrome 90.0.4430.212 (arm 64) or Safari 14.1
iOS:
Android:
Electron:

@rstoenescu
Copy link
Member

Thanks for reporting.
This will be supported in Quasar v2.0.0-beta.18.

A small note though: using "script setup" is marked as experimental by the Vue Team, which means that they can change anything at any time. Using this feature might not be the best way to go for the stability of your app/website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants