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