Commit a3f17c3 frankqian
authored
1 parent 7324ca9 commit a3f17c3 Copy full SHA for a3f17c3
File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -294,10 +294,10 @@ class Base extends React.Component {
294
294
295
295
focus ( start , end ) {
296
296
this . inputRef . focus ( ) ;
297
- if ( typeof start !== 'undefined ') {
297
+ if ( typeof start === 'number ') {
298
298
this . inputRef . selectionStart = start ;
299
299
}
300
- if ( typeof end !== 'undefined ') {
300
+ if ( typeof end === 'number ') {
301
301
this . inputRef . selectionEnd = end ;
302
302
}
303
303
}
Original file line number Diff line number Diff line change @@ -561,12 +561,12 @@ export default class Base extends React.Component {
561
561
* 点击 arrow 或 label 的时候焦点切到 input 中
562
562
* @override
563
563
*/
564
- focusInput ( ... args ) {
565
- this . inputRef . focus ( ... args ) ;
564
+ focusInput ( ) {
565
+ this . inputRef . focus ( ) ;
566
566
}
567
567
568
568
focus ( ...args ) {
569
- this . focusInput ( ...args ) ;
569
+ this . inputRef . focus ( ...args ) ;
570
570
}
571
571
572
572
beforeOpen ( ) {
You can’t perform that action at this time.
0 commit comments