Remove useless additionnal blur call (#22156)

Summary:
I noticed that the _onBlur method was not exactly similar to the _onFocus one in the TextInput component.

After digging, I found that the blurTextInput method in the TextInputState.js file was call twice in a raw instead of once when the textinput component should blur.

By removing this line, I fix this unecessary multiple call.
Pull Request resolved: https://github.com/facebook/react-native/pull/22156

Reviewed By: TheSavior

Differential Revision: D13105396

Pulled By: RSNara

fbshipit-source-id: 8e83461d8b288d8ee4047bc4a33c4480e193c349
This commit is contained in:
gazoudoudou
2018-11-26 16:41:22 +00:00
committed by Lorenzo Sciandra
parent 87c9d92c12
commit 356ac5d004
@@ -1184,7 +1184,6 @@ const TextInput = createReactClass({
},
_onBlur: function(event: Event) {
this.blur();
if (this.props.onBlur) {
this.props.onBlur(event);
}