Subscribe on changes!

Conflicts between variable in templates and built-in function name

avatar
Oct 26th 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