Skip to content

Commit 356ac5d

Browse files
gazoudoudoukelset
authored andcommitted
Remove useless additionnal blur call (facebook#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: facebook#22156 Reviewed By: TheSavior Differential Revision: D13105396 Pulled By: RSNara fbshipit-source-id: 8e83461d8b288d8ee4047bc4a33c4480e193c349
1 parent 87c9d92 commit 356ac5d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Libraries/Components/TextInput/TextInput.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1184,7 +1184,6 @@ const TextInput = createReactClass({
11841184
},
11851185

11861186
_onBlur: function(event: Event) {
1187-
this.blur();
11881187
if (this.props.onBlur) {
11891188
this.props.onBlur(event);
11901189
}

0 commit comments

Comments
 (0)