diff --git a/src/components/forms/department/pos/input/LicensePlateInput.vue b/src/components/forms/department/pos/input/LicensePlateInput.vue index afecea7b..4366c279 100644 --- a/src/components/forms/department/pos/input/LicensePlateInput.vue +++ b/src/components/forms/department/pos/input/LicensePlateInput.vue @@ -257,12 +257,16 @@ const isDropdownItemSelected = (registrationNumber) => { const inputField = ref(null); watch(() => props.actualValue, (newValue) => { - if (newValue === currentFieldVal.value) { + const normalizedValue = String(newValue ?? ''); + if (inputField.value && inputField.value.value !== normalizedValue) { + inputField.value.value = normalizedValue; + } + if (normalizedValue === currentFieldVal.value) { return; } - currentFieldVal.value = newValue; - checkLicensePlateValid(newValue); - searchCustomerRegistrationNumbers(newValue); + currentFieldVal.value = normalizedValue; + checkLicensePlateValid(normalizedValue); + searchCustomerRegistrationNumbers(normalizedValue); }); const onChangeReg1 = () => { @@ -398,4 +402,4 @@ const getCurrentIconColor = () => { .input.has-sharp-edges { border-radius: 0; } - \ No newline at end of file +