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

Radio问题 #985

Closed
MisterWhoDevelopers opened this issue Nov 2, 2018 · 4 comments
Closed

Radio问题 #985

MisterWhoDevelopers opened this issue Nov 2, 2018 · 4 comments
Assignees

Comments

@MisterWhoDevelopers
Copy link

MisterWhoDevelopers commented Nov 2, 2018

问题描述
在RadioGroup下使用遍历,index返回给onChange事件是undefined

复现步骤

  change(e) {
    console.log(e.detail)
  }
  render() {
    return (
      <RadioGroup onChange={this.change.bind(this)}>
        {this.state.list.map((item,i)=>{
          return <Label for={i}>
                  <Radio value={i} checked={item.checked}></Radio>
                 </Label>
        })}
      </RadioGroup>
    )
  }

系统信息

  • 操作系统: [e.g. Windows 10]
  • Taro 版本 [e.g. v1.2.0-alpha.3]
  • Node.js 版本 [e.g. v8.11.2]
  • 报错平台 [h5]
@luckyadam
Copy link
Member

使用 1.1.0 版本试试

@luckyadam
Copy link
Member

@MisterWhoDevelopers 请问问题还在么

@MisterWhoDevelopers
Copy link
Author

@luckyadam 还在

@taro-bot
Copy link

taro-bot bot commented Nov 30, 2018

CC @jinjinjin0731

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

3 participants