Skip to content

Commit

Permalink
fix(Select): readonly
Browse files Browse the repository at this point in the history
  • Loading branch information
nianxiongdi committed Aug 19, 2019
1 parent 5e0108d commit 0d732d6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/select/select.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ class Select extends Base {
* It MUST be multiple mode, needn't additional judgement
*/
handleTagClose(item) {
const { readOnly } = this.props;
if (readOnly) return false;
if (this.useDetailValue()) {
const value = this.state.value.filter(v => {
return item.value !== v.value;
Expand Down Expand Up @@ -865,8 +867,7 @@ class Select extends Base {

handleClear = e => {
e.stopPropagation();
const { onSearchClear } = this.props;
!!onSearchClear && onSearchClear('select');

this.handleChange(undefined, 'clear');
};

Expand Down

0 comments on commit 0d732d6

Please sign in to comment.