diff --git a/src/admin/pages/VendorAccountFields.vue b/src/admin/pages/VendorAccountFields.vue
index 4ee6f0a883..63b33c0ee6 100644
--- a/src/admin/pages/VendorAccountFields.vue
+++ b/src/admin/pages/VendorAccountFields.vue
@@ -63,7 +63,7 @@
-
+
@@ -377,17 +377,8 @@ export default {
},
validatePhoneInput( event ) {
- if ( ! event.data ) {
- return;
- }
-
- const allowedChars = [ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '(', ')', '+', '-', '_', '.' ];
-
- // If the input character is valid.
- if ( ! allowedChars.includes( event.data.at( -1 ) ) ) {
- this.vendorInfo.phone = this.vendorInfo.phone.slice(0, -1);
- }
- }
+ this.vendorInfo.phone = this.vendorInfo.phone.replace( /[^0-9\\.\-\_\(\)\+]+/g, '' );
+ },
}
};