File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed
Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -1140,9 +1140,12 @@ var IT = (function () {
11401140 me . setInvalid ( ! me . validate ( ) ) ;
11411141 } ) ;
11421142 me . input . on ( "keypress" , function ( e ) {
1143- if ( e . which == 13 ) $ ( this ) . blur ( ) ;
1143+ if ( e . which == 13 ) {
1144+ $ ( this ) . blur ( ) ;
1145+ $ ( this ) . focus ( ) ;
1146+ }
11441147 } ) ;
1145- me . input . on ( "change" , function ( e ) {
1148+ me . input . on ( "keyup change" , function ( e ) {
11461149 me . doEvent ( "onChange" , [ me . input . val ( ) ] ) ;
11471150 } ) ; //wrapper
11481151
Original file line number Diff line number Diff line change @@ -178,9 +178,13 @@ export default class TextBox extends FormItem {
178178} ) ;
179179
180180me . input . on ( "keypress" , function ( e ) {
181- if ( e . which == 13 ) $ ( this ) . blur ( ) ;
181+ if ( e . which == 13 ) {
182+ $ ( this ) . blur ( ) ;
183+ $ ( this ) . focus ( ) ;
184+ }
182185} ) ;
183- me . input . on ( "change" , function ( e ) {
186+
187+ me . input . on ( "keyup change" , function ( e ) {
184188me . doEvent ( "onChange" , [ me . input . val ( ) ] ) ;
185189} ) ;
186190
You can’t perform that action at this time.
0 commit comments