@teselagen/ui 0.6.2 → 0.6.3

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.
package/index.cjs.js CHANGED
@@ -37088,7 +37088,9 @@ const _TgSelect = class _TgSelect extends React$1.Component {
37088
37088
  active: active3,
37089
37089
  onClick: (...args) => {
37090
37090
  const shouldStopEarly = this.props.onCreateNewOption(query);
37091
- if (!shouldStopEarly) {
37091
+ if (shouldStopEarly) {
37092
+ this.setOpenState(false);
37093
+ } else {
37092
37094
  handleClick(...args);
37093
37095
  }
37094
37096
  },
package/index.es.js CHANGED
@@ -37070,7 +37070,9 @@ const _TgSelect = class _TgSelect extends React__default.Component {
37070
37070
  active: active3,
37071
37071
  onClick: (...args) => {
37072
37072
  const shouldStopEarly = this.props.onCreateNewOption(query);
37073
- if (!shouldStopEarly) {
37073
+ if (shouldStopEarly) {
37074
+ this.setOpenState(false);
37075
+ } else {
37074
37076
  handleClick(...args);
37075
37077
  }
37076
37078
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teselagen/ui",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "main": "./src/index.js",
5
5
  "exports": {
6
6
  ".": {
@@ -232,7 +232,9 @@ class TgSelect extends React.Component {
232
232
  active={active}
233
233
  onClick={(...args) => {
234
234
  const shouldStopEarly = this.props.onCreateNewOption(query);
235
- if (!shouldStopEarly) {
235
+ if (shouldStopEarly) {
236
+ this.setOpenState(false);
237
+ } else {
236
238
  handleClick(...args);
237
239
  }
238
240
  }}