Skip to content

动态更换Radio Group数据,一定概率会报错 #40

Description

@hanwenbo

image

var strV = JSON.stringify(v);
Object(react__WEBPACK_IMPORTED_MODULE_1__["useEffect"])(function () {
if (!nativeRef) {
radiosRef.current.forEach(function (_ref2) {
var setValue = _ref2.setValue;
setValue(strV ? JSON.parse(strV) : undefined);
});
}
}, [nativeRef, strV]);

因为value匹配不上

临时解决方案:
!!checkValue && data.unit.includes(checkValue) && <Radio.Group value={checkValue} onChange={v =>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions