From 356ac5d004e2534adf42499fd3fd3570c9221055 Mon Sep 17 00:00:00 2001 From: gazoudoudou Date: Mon, 19 Nov 2018 18:49:24 -0800 Subject: [PATCH] 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 --- Libraries/Components/TextInput/TextInput.js | 1 - 1 file changed, 1 deletion(-) diff --git a/Libraries/Components/TextInput/TextInput.js b/Libraries/Components/TextInput/TextInput.js index d323df04eb97ab..274ffe08a757c0 100644 --- a/Libraries/Components/TextInput/TextInput.js +++ b/Libraries/Components/TextInput/TextInput.js @@ -1184,7 +1184,6 @@ const TextInput = createReactClass({ }, _onBlur: function(event: Event) { - this.blur(); if (this.props.onBlur) { this.props.onBlur(event); }