Skip to content

Commit 984dff0

Browse files
authored
* fix(Select): init highlightKey && defaultValue, close alibaba-fusion#3757
1 parent 1b4bfec commit 984dff0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/select/base.jsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ export default class Base extends React.Component {
198198
visible: 'visible' in props ? props.visible : props.defaultVisible,
199199
dataSource: this.setDataSource(this.props),
200200
width: 100,
201-
highlightKey: 'highlightKey' in props ? props.highlightKey : props.defaultHighlightKey,
201+
highlightKey:
202+
'highlightKey' in props ? props.highlightKey : props.defaultHighlightKey || props.defaultValue,
202203
srReader: '',
203204
};
204205

0 commit comments

Comments
 (0)