wini-web-components 1.0.5 → 1.0.6

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.
@@ -197,7 +197,7 @@ var Select1 = /** @class */ (function (_super) {
197
197
  if (prevProps.options !== this.props.options) {
198
198
  this.setState(__assign(__assign({}, this.state), { options: this.props.options }));
199
199
  if (this.inputRef.current)
200
- this.inputRef.current.value = "".concat((_b = (_a = this.state.options.find(function (e) { return e.id === _this.state.value; })) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "");
200
+ this.inputRef.current.value = "".concat((_b = (_a = this.props.options.find(function (e) { return e.id === _this.state.value; })) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : "");
201
201
  }
202
202
  if (prevProps.value !== this.props.value)
203
203
  this.setState(__assign(__assign({}, this.state), { value: this.props.value }));