themesberg / themesberg/flowbite

Phone input country code no working

Open
#939 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
9.4k
Forks
862
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
the phone input country code feature does not work as it does not let the user selects a country code and remains opened with no way to close it.

To Reproduce
Steps to reproduce the behavior:

  1. Go to https://flowbite.com/docs/forms/phone-input/#phone-input-country-code
  2. Click on any phone country code
  3. Nothing happens
  4. The dropdown does not close and the phone country code does not change. Once opened, this dropdown does not close or let the user select the proper country code.

Expected behavior
when a user selects a country code from the list the dropdown should close and the country code should be selected
when a user clicks outside of the list the dropdown should close and the country code should remain the same

Desktop (please complete the following information):

  • OS: OS X (but I wouldn't be surprised if this is also the case on Windows and Linux)
  • Browser safari, chrome, firefox
  • Latest versions for the 3 of them

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue at the phone-input country-code example linked in the report, then trace the example's dropdown interaction entry point. Done means selecting a country code updates the input and closes the dropdown, while clicking outside closes it without changing the selection.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, tailwindcss
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.