king
2024-06-01 4cc738e535d1a20701d206e12cf9de8cc5a01170
src/components/normalform/modalform/mkRadio/index.jsx
@@ -22,6 +22,15 @@
    MKEmitter.addListener('mkFC', this.mkFormControl)
  }
  UNSAFE_componentWillReceiveProps(nextProps) {
    if (nextProps.config.timestamp && nextProps.config.timestamp !== this.state.config.timestamp) {
      this.setState({
        config: fromJS(nextProps.config).toJS(),
        options: fromJS(nextProps.config.options).toJS(),
      })
    }
  }
  shouldComponentUpdate (nextProps, nextState) {
    return !is(fromJS(this.state), fromJS(nextState))
  }
@@ -48,7 +57,7 @@
    if (field !== config.field) return
    let options = config.oriOptions ? config.oriOptions.filter(option => option.ParentID === parentId) : []
    let options = config.oriOptions ? config.oriOptions.filter(option => option.ParentID === parentId || option.ParentID === '') : []
    let val = options[0] ? options[0].value : ''
    this.setState({