Procházet zdrojové kódy

fix: avoid false triggering CDU in SlidingView

j8
Bettenbuk Zoltan před 5 roky
rodič
revize
0e6f14bb7c

+ 6
- 2
react/features/base/react/components/native/SlidingView.js Zobrazit soubor

@@ -128,8 +128,12 @@ export default class SlidingView extends PureComponent<Props, State> {
128 128
      *
129 129
      * @inheritdoc
130 130
      */
131
-    componentDidUpdate() {
132
-        this._setShow(this.props.show);
131
+    componentDidUpdate(prevProps: Props) {
132
+        const { show } = this.props;
133
+
134
+        if (prevProps.show !== show) {
135
+            this._setShow(show);
136
+        }
133 137
     }
134 138
 
135 139
     /**

Načítá se…
Zrušit
Uložit