File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,15 @@ var cssVar = require('../Lib/cssVar');
9
9
var TextInput = React . createClass ( {
10
10
propTypes : React . TextInput . propTypes ,
11
11
12
+ focus ( ) {
13
+ this . refs . input . focus ( ) ;
14
+ } ,
15
+
12
16
setNativeProps ( ) {
13
17
var input = this . refs . input ;
14
18
input . setNativeProps . apply ( input , arguments ) ;
15
19
} ,
20
+
16
21
render ( ) {
17
22
return (
18
23
< React . TextInput
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ var AuthHelper = {
85
85
enablesReturnKeyAutomatically = { true }
86
86
returnKeyType = 'next'
87
87
onChange = { ( event ) => this . state . username = event . nativeEvent . text }
88
- onSubmitEditing = { ( event ) => this . refs . password . focus ( ) }
88
+ onSubmitEditing = { ( ) => this . refs . password . focus ( ) }
89
89
/>
90
90
< TextInput ref = "password"
91
91
placeholder = { 'Password' }
@@ -164,4 +164,4 @@ var styles = StyleSheet.create({
164
164
} ,
165
165
} ) ;
166
166
167
- module . exports = AuthHelper ;
167
+ module . exports = AuthHelper ;
You can’t perform that action at this time.
0 commit comments