Replies: 3 comments 5 replies
|
thanks for your quick reply. Here my response:
|
|
I searched for |
@eloyg Thanks for reporting this and for the detailed repro notes. This is now addressed in v1.6.11. Updatenpm i ngxsmk-tel-input@^1.6.11If possible, please retest with your Angular 21 setup and confirm whether the first-render country flag now behaves correctly in your flow. Reference: Discussion #83 |
Uh oh!
There was an error while loading. Please reload this page.
I'm adopting this robust component in my A21 app with no major issues so far. The only problem I'm facing is that I could not get yet to set the desired initial country flag when there is no actual phone number, I mean, in the case that a form is rendered to the user for the very first time. The US flag is always being set by default.
I tried with setting [initialCountry] input param and also with calling native selectCountry(countryCode) method but neither worked. The only way I found to set the correct country flag is assigning dial code (i.e "+54") to the associated form control value, but that creates an undesired visual effect: the dial code shows twice during a fraction of time.
I also tried with calling selectCountry('AR') inside an AfterViewInit lifecycle hook with no results.
I'm using is latest version (1.6.9) and something that caught my attention is that some input parameters are not being recognized by Angular (i.e formatOnBlur).
I would appreciate any guidance on this problem. Thanks.
All reactions