fix: avoid false triggering CDU in SlidingView
This commit is contained in:
parent
57b9954d9c
commit
0e6f14bb7c
|
@ -128,8 +128,12 @@ export default class SlidingView extends PureComponent<Props, State> {
|
|||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
componentDidUpdate() {
|
||||
this._setShow(this.props.show);
|
||||
componentDidUpdate(prevProps: Props) {
|
||||
const { show } = this.props;
|
||||
|
||||
if (prevProps.show !== show) {
|
||||
this._setShow(show);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue