weui / react-weui

weui for react

Home Page:https://weui.github.io/react-weui/docs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

您好关于Checkbox在Cell里与input一起使用出现的bug

jacksonpan opened this issue · comments

commented

**Do you want to request a feature or report a bug (建议还是bug) ?**bug

What is the current behavior? (现有状况)
image

<FormCell checkbox={true} key={item.index} style={{position: 'relative'}}>




<Checkbox name={"checkbox"+index} checked={item.selected} onChange={this.selectChange} id={index}/>


当我这样使用的时候会出现ru如下图所示,最下面一行的选项,同时text无法点击输入,但我更换radio框是可以使用的。
image

What is the expected behavior? (应有状况)
应该不会出现多余的一个checkbox框,以及input框可以点击并且输入

Which versions of React-weui, weui, and which OS and device are affected by this issue? (React-weui版本 weui版本 机型和系统)
"react": "^16.4.1",
"weui": "^1.1.0"
macbookpro 15
macos 10.13.5