Skip to content

Commit

Permalink
* picker: support to set value to disabled picker manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Nov 13, 2023
1 parent ee5206f commit ec639d6
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/picker/src/component/picker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,6 @@ export class Picker<S extends PickerState = PickerState, O extends PickerOptions
}

setValue(value: unknown = [], silent?: boolean) {
if (this.props.disabled) {
return Promise.resolve(this.state);
}
let valueList = this.formatValueList(value);
if (valueList.length) {
const {items, limitValueInList} = this.props;
Expand Down

0 comments on commit ec639d6

Please sign in to comment.