We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8acc158 + f647cad commit 55c8f65Copy full SHA for 55c8f65
1 file changed
src/components/Select2.js
@@ -67,7 +67,7 @@ export default class Select2 extends Component {
67
}
68
69
setValue(value) {
70
- const elVal = this.el.val();
+ const elVal = this.props.multiple ? this.el.val() || [] : this.el.val();
71
if (!shallowEqualFuzzy(elVal, value)) {
72
this.el.val(value).trigger('change');
73
0 commit comments