@webitel/ui-sdk 24.2.58 → 24.2.59

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": "24.2.58",
3
+ "version": "24.2.59",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite",
@@ -73,7 +73,7 @@
73
73
 
74
74
  <script setup>
75
75
  import {
76
- ref, computed, useSlots, onMounted,
76
+ ref, computed, useSlots, onMounted, toRefs,
77
77
  } from 'vue';
78
78
  import { useValidation } from '../../mixins/validationMixin/useValidation';
79
79
 
@@ -180,11 +180,15 @@ const props = defineProps({
180
180
  const emit = defineEmits(['update:modelValue', 'input', 'keyup']);
181
181
 
182
182
  const slots = useSlots();
183
+
184
+ // https://stackoverflow.com/questions/72408463/use-props-in-composables-vue3
185
+ const { v, customValidators } = toRefs(props);
186
+
183
187
  const {
184
188
  isValidation,
185
189
  invalid,
186
190
  validationText,
187
- } = useValidation({ v: props.v, customValidators: props.customValidators });
191
+ } = useValidation({ v, customValidators });
188
192
 
189
193
  // toggles password <-> text at showPassword
190
194
  const inputType = ref('');