@try-at-software/input-elements 1.2.0-beta.6 → 1.2.0-beta.7
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.
|
@@ -6,7 +6,6 @@ const React = require("react");
|
|
|
6
6
|
const react_2 = require("react");
|
|
7
7
|
const Components_1 = require("../../Components");
|
|
8
8
|
const Utilities_1 = require("../../Utilities");
|
|
9
|
-
// TODO: This is a temporary solution. Accept FormText value from the operative props instead.
|
|
10
9
|
const ConsistencyErrorMessage = 'The value is not present within the specified options.';
|
|
11
10
|
const DropdownInputComponent = (props) => {
|
|
12
11
|
var _a;
|
|
@@ -25,7 +25,7 @@ class SingleValueInputElement extends ExtendedInputElement_1.ExtendedInputElemen
|
|
|
25
25
|
};
|
|
26
26
|
this.invalidateInput = (options) => {
|
|
27
27
|
this._isInvalidated = true;
|
|
28
|
-
if (options.errorMessage)
|
|
28
|
+
if (options === null || options === void 0 ? void 0 : options.errorMessage)
|
|
29
29
|
this.setError(options.errorMessage);
|
|
30
30
|
this.updateInternally();
|
|
31
31
|
this.invalidValueChangeSubscriptions.forEach((x) => x === null || x === void 0 ? void 0 : x());
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@try-at-software/input-elements",
|
|
3
|
-
"version": "1.2.0-beta.
|
|
3
|
+
"version": "1.2.0-beta.7",
|
|
4
4
|
"description": "A package providing different input elements that are extensible and easily configurable for your custom needs.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|