Переглянути джерело

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

+ 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,

Завантаження…
Відмінити
Зберегти