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