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

Dynamic argument type incorrect? #2514

Closed
mdoesburg opened this issue Mar 16, 2023 · 0 comments
Closed

Dynamic argument type incorrect? #2514

mdoesburg opened this issue Mar 16, 2023 · 0 comments
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@mdoesburg
Copy link

mdoesburg commented Mar 16, 2023

Volar: v1.2.0
Takeover Mode: yes

I am trying to conditionally add/remove an event listener, but I am getting a type error:

image

According to the Vue docs (see "Dynamic Arguments" & "Dynamic Argument Value Constraints") you should be able to use null to remove the binding:

Dynamic arguments are expected to evaluate to a string, with the exception of null. The special value null can be used to explicitly remove the binding. Any other non-string value will trigger a warning.

@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants