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

数据类型发生改变 #3091

Closed
niefufeng opened this issue Jan 25, 2021 · 1 comment
Closed

数据类型发生改变 #3091

niefufeng opened this issue Jan 25, 2021 · 1 comment

Comments

@niefufeng
Copy link

Version

3.0.5

Reproduction link

https://github.com/niefufeng/vue3-datatype-bug-demo

Steps to reproduce

  • yarn build
  • 访问 dist/index.html
  • 点击页面上的 toggle 使表单隐藏(在此之前可以尝试点击下拉框切换值,但是类型始终是 number
  • 再次点击页面伤的 toggle 使表单展示
  • 点击下拉框切换值,此时数据类型会从 number 变为 string

What is expected?

值的类型应该永远是 number

What is actually happening?

值的类型从 number 变为了 string


  • 该 bug 只会在对子组建使用 v-if 时会出现
  • 该 bug 只会在 build 过后出现,dev 模式下不会出现
  • refreactive 均会出现该 bug
@HcySunYang
Copy link
Member

This issue has the same reason as #3072, and will be fixed in #3080

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

No branches or pull requests

2 participants