@dataloop-ai/components 0.19.91 → 0.19.92
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
|
@@ -803,7 +803,7 @@ export default defineComponent({
|
|
|
803
803
|
return modelValue.value?.toString()
|
|
804
804
|
})
|
|
805
805
|
|
|
806
|
-
const onModelValueChange = (val: string) => {
|
|
806
|
+
const onModelValueChange = (val: string | number) => {
|
|
807
807
|
if (!isInternalChange.value && val !== null && val !== undefined) {
|
|
808
808
|
if (readonly.value || disabled.value) {
|
|
809
809
|
return
|
|
@@ -830,10 +830,17 @@ export default defineComponent({
|
|
|
830
830
|
return debounced
|
|
831
831
|
})
|
|
832
832
|
|
|
833
|
+
const firstTime = ref(true)
|
|
834
|
+
|
|
833
835
|
watch(
|
|
834
836
|
modelValue,
|
|
835
|
-
(val) => {
|
|
837
|
+
(val: string | number) => {
|
|
836
838
|
nextTick(() => {
|
|
839
|
+
if (firstTime.value) {
|
|
840
|
+
firstTime.value = false
|
|
841
|
+
onModelValueChange(val)
|
|
842
|
+
return
|
|
843
|
+
}
|
|
837
844
|
debouncedOnModelValueChange.value(val)
|
|
838
845
|
})
|
|
839
846
|
},
|