@webitel/ui-sdk 23.12.50-1 → 23.12.50-2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "23.12.50-1",
3
+ "version": "23.12.50-2",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -22,7 +22,7 @@ export function useValidation({ v: inputV, customValidators: inputCustomValidato
22
22
 
23
23
  const validationText = computed(() => {
24
24
  let validationText = '';
25
- if (isValidation.value && invalid) {
25
+ if (isValidation.value && invalid.value) {
26
26
  if (v.value.required?.$invalid) validationText = t('validation.required');
27
27
  else if (v.value.numeric?.$invalid) validationText = t('validation.numeric');
28
28
  else if (v.value.email?.$invalid) validationText = t('validation.email');
@@ -42,7 +42,7 @@ export function useValidation({ v: inputV, customValidators: inputCustomValidato
42
42
  else if (v.value.integer?.$invalid) validationText = `${t('validation.integer')}`;
43
43
  }
44
44
  // eslint-disable-next-line no-restricted-syntax
45
- for (const { name, text } of customValidators) {
45
+ for (const { name, text } of customValidators.value) {
46
46
  if (v.value[name]?.$invalid) validationText = text;
47
47
  }
48
48
  return validationText;