wini-web-components 2.1.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -193,7 +193,10 @@ var Select1 = /** @class */ (function (_super) {
|
|
|
193
193
|
(_a = this.inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
196
|
-
|
|
196
|
+
var newState = __assign(__assign({}, this.state), { isOpen: false, value: item.id, onSelect: undefined, selected: undefined });
|
|
197
|
+
if (!newState.options.some(function (e) { return e.id === item.id; }))
|
|
198
|
+
newState.options.push(item);
|
|
199
|
+
this.setState(newState);
|
|
197
200
|
(_b = this.inputRef.current) === null || _b === void 0 ? void 0 : _b.blur();
|
|
198
201
|
}
|
|
199
202
|
if (this.props.onChange)
|