myrta-ui 1.1.45 → 1.1.46
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/fesm2020/myrta-ui.mjs
CHANGED
|
@@ -4532,7 +4532,7 @@ const callbackValidation = (value, validations, key, invalidMessages) => {
|
|
|
4532
4532
|
if (validations[ValidationTypesEnum.Callback] && typeof validations[ValidationTypesEnum.Callback] === 'function') {
|
|
4533
4533
|
const validation = validations[ValidationTypesEnum.Callback];
|
|
4534
4534
|
const callbackResult = validation(value);
|
|
4535
|
-
if (callbackResult !==
|
|
4535
|
+
if (callbackResult !== true) {
|
|
4536
4536
|
result.message = getErrorMessageHelper(key, invalidMessages, validations.messages || { callback: callbackResult });
|
|
4537
4537
|
result.isValid = false;
|
|
4538
4538
|
}
|