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

[integ:vue3] Prop validation in template ignores required: true option #2931

Open
4 tasks done
baybal opened this issue May 12, 2021 · 2 comments
Open
4 tasks done

[integ:vue3] Prop validation in template ignores required: true option #2931

baybal opened this issue May 12, 2021 · 2 comments
Labels
bug integ:vue3 Features specific to Vue3 upstream

Comments

@baybal
Copy link

baybal commented May 12, 2021

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform:
  • Vetur version: 0.33.1
  • VS Code version: 1.54.2

Problem

image
image

Reproducible Case

https://github.com/baybal/prop-validation-bug

@baybal
Copy link
Author

baybal commented May 13, 2021

vuejs/core#2483

@yoyo930021 yoyo930021 added bug integ:vue3 Features specific to Vue3 upstream labels Jun 2, 2021
@hulkyhawk
Copy link

hulkyhawk commented Sep 29, 2021

@baybal your problem cannot be solved by fix vuejs/core#2483
you have to make required: true as const to let the compiler infer that required is not boolean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug integ:vue3 Features specific to Vue3 upstream
Projects
None yet
Development

No branches or pull requests

3 participants