Skip to content

Commit

Permalink
Merge pull request #1028 from nianxiongdi/master
Browse files Browse the repository at this point in the history
 fix(Select): readonly
  • Loading branch information
myronliu347 authored Aug 21, 2019
2 parents 2376cc6 + 0d732d6 commit 23abe9c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 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,7 +867,7 @@ class Select extends Base {

handleClear = e => {
e.stopPropagation();

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

Expand Down

0 comments on commit 23abe9c

Please sign in to comment.