@teselagen/ui 0.6.5 → 0.6.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.
- package/index.cjs.js +2 -1
- package/index.es.js +2 -1
- package/package.json +1 -1
- package/src/TgSelect/index.js +1 -1
package/index.cjs.js
CHANGED
|
@@ -37087,7 +37087,8 @@ const _TgSelect = class _TgSelect extends React$1.Component {
|
|
|
37087
37087
|
text: `Create "${query}"`,
|
|
37088
37088
|
active: active3,
|
|
37089
37089
|
onClick: (...args) => {
|
|
37090
|
-
|
|
37090
|
+
var _a2, _b2;
|
|
37091
|
+
const shouldStopEarly = (_b2 = (_a2 = this.props).onCreateNewOption) == null ? void 0 : _b2.call(_a2, query);
|
|
37091
37092
|
if (shouldStopEarly) {
|
|
37092
37093
|
this.setOpenState(false);
|
|
37093
37094
|
} else {
|
package/index.es.js
CHANGED
|
@@ -37069,7 +37069,8 @@ const _TgSelect = class _TgSelect extends React__default.Component {
|
|
|
37069
37069
|
text: `Create "${query}"`,
|
|
37070
37070
|
active: active3,
|
|
37071
37071
|
onClick: (...args) => {
|
|
37072
|
-
|
|
37072
|
+
var _a2, _b2;
|
|
37073
|
+
const shouldStopEarly = (_b2 = (_a2 = this.props).onCreateNewOption) == null ? void 0 : _b2.call(_a2, query);
|
|
37073
37074
|
if (shouldStopEarly) {
|
|
37074
37075
|
this.setOpenState(false);
|
|
37075
37076
|
} else {
|
package/package.json
CHANGED
package/src/TgSelect/index.js
CHANGED
|
@@ -231,7 +231,7 @@ class TgSelect extends React.Component {
|
|
|
231
231
|
text={`Create "${query}"`}
|
|
232
232
|
active={active}
|
|
233
233
|
onClick={(...args) => {
|
|
234
|
-
const shouldStopEarly = this.props.onCreateNewOption(query);
|
|
234
|
+
const shouldStopEarly = this.props.onCreateNewOption?.(query);
|
|
235
235
|
if (shouldStopEarly) {
|
|
236
236
|
this.setOpenState(false);
|
|
237
237
|
} else {
|