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组件在h5下不能点击选中 #4750

Closed
xspacer opened this issue Nov 3, 2019 · 5 comments
Closed

Radio组件在h5下不能点击选中 #4750

xspacer opened this issue Nov 3, 2019 · 5 comments
Assignees

Comments

@xspacer
Copy link

xspacer commented Nov 3, 2019

问题描述
[问题描述:Radio组件在h5下不能点击选中

复现步骤
[复现问题的步骤]

  1. npm run dev:h5
import Taro, { Component, Config } from '@tarojs/taro'
import {View, Radio, RadioGroup} from '@tarojs/components'
import './index.scss'

export default class Index extends Component {
  config: Config = {
    navigationBarTitleText: '首页'
  }

  render () {
    return (
      <View className='page'>
        <RadioGroup>
          <Radio value='选中' checked>选中</Radio>
          <Radio value='未选中'>未选中</Radio>
        </RadioGroup>
      </View>
    )
  }
}

期望行为
Radio组件在h5下可以点击选中

系统信息
Taro CLI 1.3.22 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.14.1 - D:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - D:\Program Files\nodejs\npm.CMD

@taro-bot
Copy link

taro-bot bot commented Nov 3, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@taro-bot
Copy link

taro-bot bot commented Nov 5, 2019

CC @jinjinjin0731

@Java-http
Copy link

我也遇到了这个问题

@ZakaryCode
Copy link
Contributor

问题描述
[问题描述:Radio组件在h5下不能点击选中

复现步骤
[复现问题的步骤]

  1. npm run dev:h5
import Taro, { Component, Config } from '@tarojs/taro'
import {View, Radio, RadioGroup} from '@tarojs/components'
import './index.scss'

export default class Index extends Component {
  config: Config = {
    navigationBarTitleText: '首页'
  }

  render () {
    return (
      <View className='page'>
        <RadioGroup>
          <Radio value='选中' checked>选中</Radio>
          <Radio value='未选中'>未选中</Radio>
        </RadioGroup>
      </View>
    )
  }
}

期望行为
Radio组件在h5下可以点击选中

系统信息
Taro CLI 1.3.22 environment info:
System:
OS: Windows 10
Binaries:
Node: 10.14.1 - D:\Program Files\nodejs\node.EXE
Yarn: 1.13.0 - ~\AppData\Roaming\npm\yarn.CMD
npm: 6.9.0 - D:\Program Files\nodejs\npm.CMD

该组件在H5上使用,需要传入onChange prop手动控制

@DULANGHAI
Copy link

这个在2.x哪个版本可以拉到,我看2.1.5上还是没有
@luckyadam

jiangzm pushed a commit to jiangzm/taro that referenced this issue Dec 7, 2020
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

6 participants