Skip to content

Bug: 2.2.0 移除了 react-lifecycles-compat 导致在 react 15 下 value 不受控 #191

Description

@BryceHQ

rc-chekcbox version: 2.2.0
react version: 15.5.4

引入了不兼容的变更,导致在 react 15 下 value 不受控,选中状态无法通过外部传入 prop: value 改变

Link to code example:

   const { check } = this.state;
    return (
        <Checkbox checked={check} onChange={() => this.setState({ check: !check })} />
    );

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