@abgov/jsonforms-components 1.24.10 → 1.24.11
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.esm.js +5 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -3517,20 +3517,20 @@ const MultiLineText = props => {
|
|
|
3517
3517
|
// maxCount={schema.maxLength || 256}
|
|
3518
3518
|
onKeyPress: (name, value, key) => {
|
|
3519
3519
|
const newValue = autoCapitalize ? value.toUpperCase() : value;
|
|
3520
|
-
if (value.length === 0) {
|
|
3520
|
+
if (value.length === 0 || required && errorsFormInput.length === 0 && value.length > 0) {
|
|
3521
3521
|
onKeyPressForTextControl({
|
|
3522
3522
|
name,
|
|
3523
3523
|
value: newValue,
|
|
3524
3524
|
key,
|
|
3525
3525
|
controlProps: props
|
|
3526
3526
|
});
|
|
3527
|
-
} else if (required && errorsFormInput.length === 0 && value.length > 0) {
|
|
3528
|
-
handleChange(path, newValue);
|
|
3529
3527
|
}
|
|
3530
3528
|
},
|
|
3531
3529
|
onChange: (name, value) => {
|
|
3532
|
-
|
|
3533
|
-
|
|
3530
|
+
if (data !== value) {
|
|
3531
|
+
const newValue = autoCapitalize ? value.toUpperCase() : value;
|
|
3532
|
+
handleChange(path, newValue);
|
|
3533
|
+
}
|
|
3534
3534
|
}
|
|
3535
3535
|
}, (_h = uischema === null || uischema === void 0 ? void 0 : uischema.options) === null || _h === void 0 ? void 0 : _h.componentProps));
|
|
3536
3536
|
return txtAreaComponent;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/jsonforms-components",
|
|
3
|
-
"version": "1.24.
|
|
3
|
+
"version": "1.24.11",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Government of Alberta - React renderers for JSON Forms based on the design system.",
|
|
6
6
|
"repository": "https://github.com/GovAlta/adsp-monorepo",
|