Commit 20f2e1c 1 parent 6863b9f commit 20f2e1c Copy full SHA for 20f2e1c
File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 45
45
display : inline-block ;
46
46
width : auto ;
47
47
}
48
+ > .#{$css-prefix } select-arrow {
49
+ padding-right : 0 ;
50
+ }
48
51
}
49
52
50
53
.#{$css-prefix } input.#{$css-prefix } disabled {
Original file line number Diff line number Diff line change @@ -617,7 +617,10 @@ class Select extends Base {
617
617
handleArrowClick = ( e ) => {
618
618
e . preventDefault ( ) ;
619
619
this . focusInput ( ) ;
620
- this . setVisible ( ! this . state . visible ) ;
620
+
621
+ // because of can not close Popup by click Input while hasSearch.
622
+ // so when Popup open and hasSearch, we should close Popup intentionally
623
+ this . state . visible && this . hasSearch ( ) && this . setVisible ( ! this . state . visible ) ;
621
624
}
622
625
623
626
handleClear = e => {
@@ -793,7 +796,7 @@ class Select extends Base {
793
796
const { mode } = this . props ;
794
797
const props = { ...this . props } ;
795
798
796
- // 搜索的时候不允许回车触发关闭
799
+ // forbid to close Popup by click Input while hasSearch
797
800
if ( this . hasSearch ( ) ) {
798
801
props . canCloseByTrigger = false ;
799
802
}
You can’t perform that action at this time.
0 commit comments