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

h5下CheckboxGroup组件调用onChange没反应? #1715

Closed
geminiyu233 opened this issue Dec 27, 2018 · 8 comments
Closed

h5下CheckboxGroup组件调用onChange没反应? #1715

geminiyu233 opened this issue Dec 27, 2018 · 8 comments
Assignees

Comments

@geminiyu233
Copy link

geminiyu233 commented Dec 27, 2018

重现步骤

handleChecked = () => {
    console.log(1)
    this.setState({
      isAgree: !this.state.isAgree
    })
  }

<View className="login-agree-box">
  <CheckboxGroup onChange={this.handleChecked}>
    <Checkbox checked={isAgree} color='#ff2852'></Checkbox>
  </CheckboxGroup>
  <View className="login-agree-text">
    <Text className="link-line">我同意《软件产品代理合作协议》</Text>
   </View>
</View>

支付宝小程序及微信小程序都能打印,然而h5并没有,麻烦各位大佬抽空帮我看看咯!

依赖的版本号

Node v8.11.3
Taro 1.2.2

预期结果

打印 1

实际结果

nothing

相关链接

@taro-bot
Copy link

taro-bot bot commented Dec 27, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Dec 27, 2018

CC @jinjinjin0731

@jinjinjin0731
Copy link
Contributor

是个问题,晚点解决下

@Yaphet2015
Copy link

好像目前还没有解决?

@Yaphet2015
Copy link

Taro 1.2.4

@jinjinjin0731
Copy link
Contributor

是,可以暂时在 Checkbox 外面 包裹一层 Label 。这样没有问题。

@Yaphet2015
Copy link

是,可以暂时在 Checkbox 外面 包裹一层 Label 。这样没有问题。

能够临时解决,希望尽快更新
顺便赞一下处理速度

@jinjinjin0731
Copy link
Contributor

已经解决的。 忘记关闭。,更新到最新版本

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