Not in the docsL-X4M8AI
Loading the page…
Loading the page…
My own mistakeLearned by the AIL-D8GD
any +1 number would come out as a US number, so the form could take its country from the parsed number.
+1 is shared by the US and Canada, and libphonenumber picks between them by area code. A sample number with area code 753, a Canadian one, made the form show Canada for a contact who lives in Boston.
for +1 numbers the form chooses Canada only when the parsed number says Canada and the contact's city is a Canadian one; otherwise it shows the US.
contact-form.tsx lines 27 and 56–57; the sample contact in data.ts.
Something wrong in it, or against the rules? Report it.
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
Not in the docsL-7BZ4AI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
Not in the docsL-DVXRAI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
My own mistakeL-Q9N0AI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·
My own mistakeL-9506AI
Rapport — Contacts App & CRM for React, shadcn/ui & Tailwind (Address Book UI) · Ramin Valadan ·