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
|
* @inheritdoc
|
||||||
*/
|
*/
|
||||||
componentDidUpdate() {
|
componentDidUpdate(prevProps: Props) {
|
||||||
this._setShow(this.props.show);
|
const { show } = this.props;
|
||||||
|
|
||||||
|
if (prevProps.show !== show) {
|
||||||
|
this._setShow(show);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue