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

textinput propsCommon.readOnly 的问题 #15

Closed
leanhunter opened this issue Nov 28, 2016 · 3 comments
Closed

textinput propsCommon.readOnly 的问题 #15

leanhunter opened this issue Nov 28, 2016 · 3 comments

Comments

@leanhunter
Copy link
Collaborator

问题描述:

  1. 设置 textinput editable 为false,则readOnly=true
  2. 通过props 修改textinput的 editable 为true,此时由于代码里没处理,不再有 readOnly 属性传给weex。
  3. 由于weex 默认值设置没有把readOnly 改为false,导致 textinput readOnly 永远为true,与期望不一致。

解决办法: 二选一。

  1. 给组件加上readOnly false 的默认值 2. weex 默认值加上readonly false默认值
@evilbs
Copy link
Collaborator

evilbs commented Nov 28, 2016

good problem.

@yacheng
Copy link
Collaborator

yacheng commented Dec 1, 2016

未来版本中会放开对 props 的限制,组件层面会做支持

@yuanyan
Copy link
Collaborator

yuanyan commented Dec 30, 2016

rax-components@0.0.12 fixed this bug.

@yuanyan yuanyan closed this as completed Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants