wini-web-components 1.0.7 → 1.0.8

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.
@@ -310,7 +310,7 @@ var DatePicker = /** @class */ (function (_super) {
310
310
  if (ev.target.classList.contains('popup-overlay'))
311
311
  _this.setState(__assign(__assign({}, _this.state), { isOpen: false }));
312
312
  } },
313
- react_1.default.createElement(index_1.Calendar, { value: this.getNewValue(), type: (_f = this.props.pickerType) !== null && _f !== void 0 ? _f : index_1.CalendarType.DATE, className: 'date-picker-popup-container', style: (_g = this.state.style) !== null && _g !== void 0 ? _g : { top: this.state.offset.y + this.state.offset.height + 2 + 'px', left: this.state.offset.x + 'px', border: 'none', boxShadow: '-20px 20px 40px -4px rgba(145, 158, 171, 0.24), 0px 0px 2px 0px rgba(145, 158, 171, 0.24)' }, onSelect: function (dateValue) {
313
+ react_1.default.createElement(index_1.Calendar, { min: this.props.min, max: this.props.max, value: this.getNewValue(), type: (_f = this.props.pickerType) !== null && _f !== void 0 ? _f : index_1.CalendarType.DATE, className: 'date-picker-popup-container', style: (_g = this.state.style) !== null && _g !== void 0 ? _g : { top: this.state.offset.y + this.state.offset.height + 2 + 'px', left: this.state.offset.x + 'px', border: 'none', boxShadow: '-20px 20px 40px -4px rgba(145, 158, 171, 0.24), 0px 0px 2px 0px rgba(145, 158, 171, 0.24)' }, onSelect: function (dateValue) {
314
314
  var _a;
315
315
  switch (_this.props.pickerType) {
316
316
  case index_1.CalendarType.YEAR:
@@ -155,7 +155,9 @@ var Select1 = /** @class */ (function (_super) {
155
155
  });
156
156
  };
157
157
  Select1.prototype.onSelect = function (item) {
158
- this.setState(__assign(__assign({}, this.state), { isOpen: false, value: item.id }));
158
+ var _a;
159
+ this.setState(__assign(__assign({}, this.state), { isOpen: false, value: item.id, onSelect: undefined }));
160
+ (_a = this.inputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
159
161
  if (this.props.onChange)
160
162
  this.props.onChange(item);
161
163
  };