From 1224b890db1a2e60dfdc7d42629f823745c8f306 Mon Sep 17 00:00:00 2001 From: Chirag Chhatrala <60499540+chiragchhatrala@users.noreply.github.com> Date: Mon, 25 Nov 2024 21:56:43 +0530 Subject: [PATCH] Fix phoneinput inputval watcher (#631) --- client/components/forms/PhoneInput.vue | 2 ++ 1 file changed, 2 insertions(+) diff --git a/client/components/forms/PhoneInput.vue b/client/components/forms/PhoneInput.vue index fd24784e..0673435d 100644 --- a/client/components/forms/PhoneInput.vue +++ b/client/components/forms/PhoneInput.vue @@ -124,6 +124,8 @@ export default { watch: { inputVal: { handler(val) { + if (!this.selectedCountryCode) return + if (val && val.startsWith("0")) { val = val.substring(1) }