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

建议 Input的value和Select的value表现一致 #1038

Closed
LeuisKen opened this issue Feb 19, 2016 · 7 comments
Closed

建议 Input的value和Select的value表现一致 #1038

LeuisKen opened this issue Feb 19, 2016 · 7 comments

Comments

@LeuisKen
Copy link

Input的value在props写定则不可更改
Select的value在props写定也可以更改

在使用时该觉Input这种设定用起来很不舒服 希望能统一一下

或者希望官方能够给出这样设计的理由和使用场景

@afc163
Copy link
Member

afc163 commented Feb 19, 2016

http://codepen.io/anon/pen/obRGJj?editors=001

Select 设置了 value 应该是不可修改的吧。

@LeuisKen
Copy link
Author

我在用的时候遇到的问题defaultValue没办法解决 稍后我想办法还原在codepen上

@LeuisKen
Copy link
Author

http://codepen.io/LeuisKen/pen/RrmxRe?editors=0010

发现在绑定了state的时候 其实value是可以输入的 因为之前问的时候知道了value会锁定就没考虑 结果表明两者的表现确实是一致的

不过还有一点小建议 哈哈 写在CodePen里面了 就是希望Input和Select的disabled样式能保持一致

@afc163
Copy link
Member

afc163 commented Feb 19, 2016

你指的样式差异是哪方面不同?

看到了。

afc163 added a commit that referenced this issue Feb 19, 2016
@afc163
Copy link
Member

afc163 commented Feb 19, 2016

感谢反馈,先关了。

@afc163 afc163 closed this as completed Feb 19, 2016
@lock
Copy link

lock bot commented May 6, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 6, 2018
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

3 participants