Преглед на файлове

fix(rn) stop room name generator when field is focused

Fixes: https://github.com/jitsi/jitsi-meet/issues/8307
master
Saúl Ibarra Corretgé преди 4 години
родител
ревизия
e30b2e14a5
променени са 1 файла, в които са добавени 10 реда и са изтрити 3 реда
  1. 10
    3
      react/features/welcome/components/WelcomePage.native.js

+ 10
- 3
react/features/welcome/components/WelcomePage.native.js Целия файл

@@ -167,10 +167,17 @@ class WelcomePage extends AbstractWelcomePage {
167 167
      * @returns {void}
168 168
      */
169 169
     _onFieldFocusChange(focused) {
170
-        focused
171
-            && this.setState({
172
-                _fieldFocused: true
170
+        if (focused) {
171
+            // Stop placeholder animation.
172
+            this._clearTimeouts();
173
+            this.setState({
174
+                _fieldFocused: true,
175
+                roomPlaceholder: ''
173 176
             });
177
+        } else {
178
+            // Restart room placeholder animation.
179
+            this._updateRoomname();
180
+        }
174 181
 
175 182
         Animated.timing(
176 183
             this.state.hintBoxAnimation,

Loading…
Отказ
Запис