Replies: 2 comments
-
因为有值时是直接受控,自己的state不存 |
Beta Was this translation helpful? Give feedback.
0 replies
-
我猜是应该只set一次吧,如果不停的setState会一直render,会导致报错,内存溢出吧 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
https://github.com/ant-design/ant-design/blob/master/components/input/Input.tsx#L246
if (this.props.value === undefined)
这句代码的作用是什么?
Beta Was this translation helpful? Give feedback.
All reactions