Closed LentoYe closed 11 months ago
Popup 组件内部嵌套 Radio 组件,Radio 组件可以控制Popup 的关闭,然而 Radio 的onChange 事件绑定控制Popup 关闭的方法后,Popup 关闭的动画消失,形成闪退的效果。
const [popupVisible, setPopupVisible] = false; <Popup animationDuration={500} visible={popupVisible} onMaskClick={() => setPopupVisible(false)} destroy={false}> <NavBar right={<Close theme="primary" onClick={() => setPopupVisible(false)} />} /> // 关闭动画正常 <Radio.Group type="list" listIconAlign="after" value={paymentChosen.paymentWay} onChange={() => setPopupVisible(false)} // 关闭动画异常 > { paymentList.map((item) => { return <Radio data={item} />; }) } </Radio.Group> </Popup>
You can get this information from package.json and your device.
package.json
Description
Popup 组件内部嵌套 Radio 组件,Radio 组件可以控制Popup 的关闭,然而 Radio 的onChange 事件绑定控制Popup 关闭的方法后,Popup 关闭的动画消失,形成闪退的效果。
Steps to Reproduce
Environment
You can get this information from
package.json
and your device.