fix: avoid false triggering CDU in SlidingView

This commit is contained in:
Bettenbuk Zoltan
2019-07-10 20:49:50 +02:00
committed by Zoltan Bettenbuk
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);
}
}
/**