mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
commit
5b93d128b8
@ -25,6 +25,15 @@ export default class CheckboxesControl extends React.Component<CheckboxesProps,
|
||||
defaultCheckAll && onToggleAll();
|
||||
}
|
||||
|
||||
componentDidUpdate(prevProps:OptionsControlProps) {
|
||||
let {options: currOptions, onToggleAll, defaultCheckAll} = this.props;
|
||||
let {options: prevOptions} = prevProps;
|
||||
|
||||
if (defaultCheckAll && prevOptions != currOptions) {
|
||||
onToggleAll();
|
||||
}
|
||||
}
|
||||
|
||||
reload() {
|
||||
const reload = this.props.reloadOptions;
|
||||
reload && reload();
|
||||
|
Loading…
Reference in New Issue
Block a user