Skip to content

Commit

Permalink
Merge pull request alibaba-fusion#1438 from nianxiongdi/new_component
Browse files Browse the repository at this point in the history
fix(Select): add one key clear. close alibaba-fusion#1422
  • Loading branch information
youluna authored Jan 19, 2020
2 parents bfb9909 + 7d0a66f commit 79d859a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/select/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,7 @@ class Select extends Base {
};

hasClear() {
const { hasClear, readOnly, disabled, mode, showSearch } = this.props;
const { hasClear, readOnly, disabled, showSearch } = this.props;
const { value, visible } = this.state;

return (
Expand All @@ -907,7 +907,6 @@ class Select extends Base {
hasClear &&
!readOnly &&
!disabled &&
mode === 'single' &&
!(showSearch && visible)
);
}
Expand Down

0 comments on commit 79d859a

Please sign in to comment.