mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 12:05:06 +00:00
[react_native] JS files from D2020585: [react_native] Remove focus for TextInputs when they unmount
This commit is contained in:
parent
d293bed5ab
commit
a635a73abc
@ -350,6 +350,9 @@ var TextInput = React.createClass({
|
||||
|
||||
componentWillUnmount: function() {
|
||||
this._focusSubscription && this._focusSubscription.remove();
|
||||
if (this.isFocused()) {
|
||||
this.blur();
|
||||
}
|
||||
},
|
||||
|
||||
_bufferTimeout: (undefined: ?number),
|
||||
|
Loading…
x
Reference in New Issue
Block a user