@@ -224,14 +224,14 @@ const Select = {
224
224
this . forcePopupAlign ( ) ;
225
225
} ) ;
226
226
} ,
227
- '$data._open' ( ) {
227
+ '$data._open' ( open ) {
228
228
this . $nextTick ( ( ) => {
229
229
const { prefixCls } = this . $props ;
230
230
const { _selectorValueList : selectorValueList , _valueEntities : valueEntities } = this . $data ;
231
231
const isMultiple = this . isMultiple ( ) ;
232
232
233
233
// Scroll to value position, only need sync on single mode
234
- if ( ! isMultiple && selectorValueList . length && this . popup ) {
234
+ if ( ! isMultiple && selectorValueList . length && open && this . popup ) {
235
235
const { value } = selectorValueList [ 0 ] ;
236
236
const { domTreeNodes } = this . popup . getTree ( ) ;
237
237
const { key } = valueEntities [ value ] || { } ;
@@ -823,15 +823,16 @@ const Select = {
823
823
824
824
onDropdownVisibleChange ( open ) {
825
825
const { multiple, treeCheckable } = this . $props ;
826
- const { _searchValue } = this ;
826
+ const { _searchValue } = this . $data ;
827
827
828
828
// When set open success and single mode,
829
829
// we will reset the input content.
830
830
if ( open && ! multiple && ! treeCheckable && _searchValue ) {
831
- this . setUncontrolledState ( {
832
- _searchValue : '' ,
833
- _filteredTreeNodes : null ,
834
- } ) ;
831
+ // 动画会有闪动,该特性先注释
832
+ // this.setUncontrolledState({
833
+ // _searchValue: '',
834
+ // _filteredTreeNodes: null,
835
+ // });
835
836
}
836
837
this . setOpenState ( open , true ) ;
837
838
} ,
0 commit comments