What's Changed
Fixed
-
countryStatePath()no longer overrides an explicitly setinputNumberFormat()(#118).
Previously, usingcountryStatePath()forced the stored number intoNATIONALformat even
when another format was configured. Now an explicitinputNumberFormat()always wins:PhoneInput::make('mobile') ->countryStatePath('country_code') ->inputNumberFormat(PhoneInputNumberType::E164) // now respected — stores +61411xxx123
The default behavior is unchanged for backwards compatibility: if no format is set,
numbers are still stored in NATIONAL format when a country state path is used.
inputNumberFormat()no longer throws when passed a Closure.
Full Changelog: v4.2.3...v4.2.4