@7shifts/sous-chef 3.53.0 → 3.53.1

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/dist/index.js CHANGED
@@ -13129,8 +13129,7 @@ var PhoneField$1 = function PhoneField(_ref) {
13129
13129
  }
13130
13130
  };
13131
13131
  var handlePhoneChange = function handlePhoneChange(e) {
13132
- var formatedPhone = new libphonenumberJs.AsYouType(selectedCountry).input(e.target.value);
13133
- e.target.value = formatedPhone;
13132
+ var formatedPhone = metaData.phone.length < e.target.value.length ? new libphonenumberJs.AsYouType(selectedCountry).input(e.target.value) : e.target.value;
13134
13133
  var internationalPhone = '';
13135
13134
  var parseError = null;
13136
13135
  try {