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

The directive is overwritten by the varriable which has the same name as the directive when use composition API #3275

Closed
Ryan2128 opened this issue Feb 22, 2021 · 3 comments
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working

Comments

@Ryan2128
Copy link

Version

3.0.5

Reproduction link

https://github.com/Ryan2128/test

Steps to reproduce

Just run it.

What is expected?

Behavior as same as option API

What is actually happening?

After compile, the directive and the varriable both are properties of $setup

image

@HcySunYang
Copy link
Member

It has the same reason as #3270

@HcySunYang HcySunYang added 🐞 bug Something isn't working 🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem labels Feb 22, 2021
@HcySunYang
Copy link
Member

Same workaround as #3270 (comment)

@Ryan2128
Copy link
Author

Same workaround as #3270 (comment)

Yes, just change one of their name.

Thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🔨 p3-minor-bug Priority 3: this fixes a bug, but is an edge case that only affects very specific usage. has workaround A workaround has been found to avoid the problem 🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants