weui / react-weui

weui for react
https://weui.github.io/react-weui/docs/
2.85k stars 492 forks source link

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

Open jacksonpan opened 6 years ago

jacksonpan commented 6 years ago

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'}}>

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

当我这样使用的时候会出现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