Skip to content

v4.2.4

Choose a tag to compare

@ysfkaya ysfkaya released this 01 Sep 18:35
· 4 commits to main since this release

What's Changed

Fixed

  • countryStatePath() no longer overrides an explicitly set inputNumberFormat() (#118).
    Previously, using countryStatePath() forced the stored number into NATIONAL format even
    when another format was configured. Now an explicit inputNumberFormat() 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