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

日历组件不受控 #4916

Closed
hellohejinyu opened this issue Mar 13, 2022 · 2 comments
Closed

日历组件不受控 #4916

hellohejinyu opened this issue Mar 13, 2022 · 2 comments
Assignees

Comments

@hellohejinyu
Copy link
Contributor

Version of antd-mobile

5.6.0

Operating system and its version

Others

Browser and its version

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.51 Safari/537.36

Sandbox to reproduce

No response

What happened?

image

value 提供一个固定的值,受控模式的话,理论上这个日历组件就被锁死在这个选择上了,除非 onChange 去改变 value

image

但是实际上日历组件仍然可以随便选择日期,没有受控。

Relevant log output

No response

@miracles1919
Copy link
Contributor

发现 value defaultValue onChange 的类型不太好处理...

shiyiya added a commit to shiyiya/ant-design-mobile that referenced this issue Mar 15, 2022
@awmleer awmleer self-assigned this Mar 16, 2022
@awmleer
Copy link
Member

awmleer commented Mar 16, 2022

2f6a928 已修复

@awmleer awmleer closed this as completed Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants