Browse Source

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 years ago
parent
commit
e30b2e14a5
1 changed files with 10 additions and 3 deletions
  1. 10
    3
      react/features/welcome/components/WelcomePage.native.js

+ 10
- 3
react/features/welcome/components/WelcomePage.native.js View File

167
      * @returns {void}
167
      * @returns {void}
168
      */
168
      */
169
     _onFieldFocusChange(focused) {
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
         Animated.timing(
182
         Animated.timing(
176
             this.state.hintBoxAnimation,
183
             this.state.hintBoxAnimation,

Loading…
Cancel
Save