fix: avoid false triggering CDU in SlidingView

This commit is contained in:
Bettenbuk Zoltan 2019-07-10 11:46:22 +02:00 committed by Zoltan Bettenbuk
parent 57b9954d9c
commit 0e6f14bb7c
1 changed files with 6 additions and 2 deletions

View File

@ -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);
}
}
/**