Skip to content

feat: new phone number input with flags and prefilling - #205

Merged
jakubjasinsky merged 1 commit into
masterfrom
phone-number-input-adjustments
Jul 30, 2025
Merged

feat: new phone number input with flags and prefilling#205
jakubjasinsky merged 1 commit into
masterfrom
phone-number-input-adjustments

Conversation

@jakubjasinsky

@jakubjasinsky jakubjasinsky commented Jul 24, 2025

Copy link
Copy Markdown
Collaborator

Description

This PR refactors phone number input to be more flexible with prefilling etc. Apart from that country flags should be displayed instead of country name.

Demo

CleanShot.2025-07-24.at.09.27.23.mp4

Checklist

  • I bumped the version of the project using yarn bump-version
  • I have checked the code for any potential issues
  • I tested my changes in the browser

Notes

Jira Issue

@jakubjasinsky
jakubjasinsky force-pushed the phone-number-input-adjustments branch from 55c8b88 to 0c49759 Compare July 24, 2025 07:29
Comment thread src/nativeapm/elements/inputs/phone-with-country.ts Fixed
Comment on lines +768 to +771
flagImg.src = this.processOut.endpoint(
"js",
"images/countries/" + countryCode.toLowerCase() + ".png",
)

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
@jakubjasinsky
jakubjasinsky force-pushed the phone-number-input-adjustments branch from c18dc6a to 527c350 Compare July 30, 2025 08:10
@jakubjasinsky
jakubjasinsky merged commit c8e2335 into master Jul 30, 2025
5 checks passed
@jakubjasinsky
jakubjasinsky deleted the phone-number-input-adjustments branch July 30, 2025 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants