wini-web-components 1.1.0 → 1.2.1

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.
@@ -107,6 +107,7 @@ var Select1 = /** @class */ (function (_super) {
107
107
  _this.onKeyDown = function (ev) {
108
108
  var _a, _b, _c, _d, _e, _f, _g;
109
109
  console.log(ev.key);
110
+ debugger;
110
111
  ev.preventDefault();
111
112
  if ((((_a = _this.state.options) === null || _a === void 0 ? void 0 : _a.length) || ((_b = _this.state.search) === null || _b === void 0 ? void 0 : _b.length)) && _this.state.isOpen) {
112
113
  switch (ev.key.toLowerCase()) {
@@ -275,7 +276,7 @@ var Select1 = /** @class */ (function (_super) {
275
276
  react_1.default.createElement("div", { className: 'row', style: { flexWrap: 'wrap', flex: 1, width: '100%', gap: '0.6rem 0.4rem' } }, (!_value || typeof _value.name === "string" || typeof _value.name === "number") ? react_1.default.createElement("input", { ref: this.inputRef, readOnly: this.props.readOnly, onChange: this.search, placeholder: this.props.placeholder, onKeyDown: this.onKeyDown, onBlur: function (ev) {
276
277
  if (_this.state.onSelect && !_this.props.readOnly)
277
278
  ev.target.focus();
278
- else
279
+ else if (!_this.state.onSelect)
279
280
  _this.setState(__assign(__assign({}, _this.state), { isOpen: false, onSelect: null }));
280
281
  } }) : _value.name),
281
282
  this.props.showClearValueButton && react_1.default.createElement("button", { type: 'button', className: 'row', style: { padding: '0.4rem' }, onClick: function (ev) {