-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
TimePicker input should be readonly, like DatePicker #4084
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
Comments
出现这个问题是因为 vue 的受控组件行为跟 react 的不一致导致的。你这样直接把 |
@John60676 的确, 如果将里面input值保持同步, 也是可以解决这个问题的. 只是与DatePicker行为就有差异了 我只是提出参考, 具体怎么做合适, andv团队的考虑肯定更全面 已经有4088了, 如果没问题的话, 回头我就把我提交的issue与两个pr close掉 |
这里感觉直接 readonly 也可行 没发现有特别的分支 @John60676 |
就目前看来,除了 input 上会多出个 |
@tangjinzhou Thx |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Version
1.7.5 & 2.1.4
Environment
MacOS 10.13.4, Chrome 90.0.4430.212, Vue 2.6.10
Reproduction link
Steps to reproduce
What is expected?
input should be readonly like date picker, inputReadOnly only works on popup input
What is actually happening?
input is empty, but time value is still there
Here is video about issue recreating
https://user-images.githubusercontent.com/7044628/118246289-5958f280-b4d4-11eb-99cc-b65922cc7a9a.mp4
The text was updated successfully, but these errors were encountered: