Skip to content

Beautiful Open-Source Form Builder

Fix phoneinput inputval watcher (#631)

Chirag Chhatrala1224b890db1a
diff --git a/client/components/forms/PhoneInput.vue b/client/components/forms/PhoneInput.vue
index fd24784e0..0673435d3 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)
}