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

passing value=ref(0) in n-input will show placeholder and 0 simutanuously #914

Closed
Zeiion opened this issue Aug 19, 2021 · 2 comments · Fixed by #918
Closed

passing value=ref(0) in n-input will show placeholder and 0 simutanuously #914

Zeiion opened this issue Aug 19, 2021 · 2 comments · Fixed by #918
Assignees
Labels
bug Something isn't working

Comments

@Zeiion
Copy link

Zeiion commented Aug 19, 2021

TuSimple/naive-ui version (版本)

2.16.4

Vue version (Vue 版本)

3.2.4

Browser and its version (浏览器及其版本)

Chrome(92.0.4515.159)

System and its version (系统及其版本)

Win10

Node version (Node 版本)

Reappearance link (重现链接)

https://codesandbox.io/s/msol6?file=/src/Demo.vue

Reappearance steps (重现步骤)

把value变成ref(0)

Expected results (期望的结果)

只显示0吧

Actual results (实际的结果)

同时显示placeholder和0

Remarks (补充说明)

@github-actions github-actions bot added the untriaged need to sort label Aug 19, 2021
@Zeiion Zeiion changed the title 输入框绑定ref(0) 会同时显示placeholder和0 输入框绑定ref(0) 会同时显示placeholder和0 🐛 Aug 19, 2021
@Volankey Volankey added bug Something isn't working and removed untriaged need to sort labels Aug 19, 2021
@Volankey Volankey self-assigned this Aug 19, 2021
@07akioni
Copy link
Collaborator

这一定程度是个 bug,不过你也得注意不要绑 number 啊

@07akioni 07akioni changed the title 输入框绑定ref(0) 会同时显示placeholder和0 🐛 pass value: ref(0) in n-input will show placeholder and 0 simutanuously Aug 19, 2021
@07akioni 07akioni changed the title pass value: ref(0) in n-input will show placeholder and 0 simutanuously pass value=ref(0) in n-input will show placeholder and 0 simutanuously Aug 19, 2021
@07akioni 07akioni changed the title pass value=ref(0) in n-input will show placeholder and 0 simutanuously passing value=ref(0) in n-input will show placeholder and 0 simutanuously Aug 19, 2021
@Volankey
Copy link
Collaborator

这一定程度是个 bug,不过你也得注意不要绑 number 啊

有空合一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants