Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For some reason the input appears as disabled #12

Closed
ZeldOcarina opened this issue Mar 14, 2024 · 6 comments · Fixed by #13
Closed

For some reason the input appears as disabled #12

ZeldOcarina opened this issue Mar 14, 2024 · 6 comments · Fixed by #13

Comments

@ZeldOcarina
Copy link

Selecting a flag doesn't give any outcome. Do you have any idea?

image

@omeralpi
Copy link
Owner

Hi.

  1. Could you please provide details about the browser you are using?
  2. Would you be able to record a screen video regarding the issue you are experiencing?

@ZeldOcarina
Copy link
Author

Of course! I am using Chrome on latest version, here's a Loom:
https://www.loom.com/share/564ff3509a0648b18510e0aed2a5d4da?sid=27499613-6e64-4950-9833-75540200f501

Here's a snippet of the implementation:

<FormField
          control={form.control}
          name="phoneNumber"
          render={({ field }) => (
            <FormItem>
              <FormLabel>Phone Number</FormLabel>
              <FormControl>
                <PhoneInput
                  placeholder="Enter a phone number"
                  {...field}
                  className="w-full"
                  defaultCountry="US"
                  disabled={false}
                />
              </FormControl>
              <FormMessage />
            </FormItem>
          )}
        />

Except for a border radius change the phone-input.tsx is exactly what you gave in the repo! :)

Thanks for this project btw it's something I wanted to do but did not have time to!

@omeralpi
Copy link
Owner

omeralpi commented Mar 14, 2024

The cause of your issue could be the Google extensions you're using. Have you tried opening it in an incognito tab? 🤔

@ZeldOcarina
Copy link
Author

I did not. I tried now but the outcome is the same..

@omeralpi
Copy link
Owner

Got it.

Make sure you have version "^0.2.1" of "cmdk" in your package.json file.

@Justbeingjustin
Copy link

I had the same problem and changing the version of cmdk to "^0.2.1" did the trick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants