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

Conflicts between variable in templates and built-in function name #9482

Closed
depux opened this issue Oct 26, 2023 · 0 comments · Fixed by #9492
Closed

Conflicts between variable in templates and built-in function name #9482

depux opened this issue Oct 26, 2023 · 0 comments · Fixed by #9492

Comments

@depux
Copy link

depux commented Oct 26, 2023

Vue version

v3.3.7

Link to minimal reproduction

https://play.vuejs.org/#eNqVUl1LwzAU/SvXILTD2aG+yTZQGagPU1TwJQi1vduqaVKSmzko/e/eZHT6MAe+Jefjcs5NWnHVNNnao7gUY1fYqiFwSL6ZSl3VjbEELVhcDKEwdeMJS+hgYU0NCZsSqaUujHYEtVvCJCjT5BaVMvBqrCqPkkEv0L5+mrFk9CZleXI86vHKzfM54/38NB3AZApHUZ8ROkp5drbOlcfBbhq7DM19/Q/jeLTtx834Qlg3KifkG8B4dTZt29ih68Yjvm3Rc1ifupX5mkgRY0oxvaPEgTYEeWj0jhbSSA3Ydr7XFnP+6YzsL3OluQz7a1Oi4gGcib0h/S6xGApyvIZFtcw+nNH8dG3wShFWUSm0Dw1VvCYpLiEygcv5Ub7uI0bW47DHixUWn3vwD7cJmBSPFh3aNUqx4yi3S6QtPXue44bPO5KTe8XqA+QTOqN8yLiVXXtdcuxfupj2Ln7ASi9f3GxDqF1fKgQNyi7qpeCveHOg+k/ci+wi+qTuRPcN6Q378g==

Steps to reproduce

1、Define a variable with the same name as a built-in function.
2、Use that variable in the template.
3、Type numbers and non-numbers in the text boxes respectively.

What is expected?

The two h2 above should change in exactly the same way when the input changes

What is actually happening?

The two h2 behave differently when typing numbers and non-numbers in the text box respectively

System Info

No response

Any additional comments?

No response

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants