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

Issue on mobile devices #69

Open
codergigachad opened this issue Jul 21, 2024 · 2 comments
Open

Issue on mobile devices #69

codergigachad opened this issue Jul 21, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@codergigachad
Copy link

When tag-input is the last input field in shadcn form we can enter tags as the button is submit but when it's not the last input the button is tab (to go to the next input), so we can't submit and no tag is entered.

@JaleelB
Copy link
Owner

JaleelB commented Jul 28, 2024

Hey @codergigachad. To better assist you, could you please provide a few more details:

Version Information: Could you confirm the version of the package you are currently using? This will help us understand if you have the latest updates where the issue was addressed.

Code Snippet: Could you share a snippet of how you're implementing the autocomplete feature in your setup? This will help us identify any potential misconfigurations or specific use cases.

Browser and Environment: Which browser and version are you using? Also, are you seeing this behavior in a specific environment (e.g., development, production)?

Error Logs: Are there any console errors when you attempt to use the autocomplete feature or when the issue occurs?

Any additional information or screenshots you could provide would be greatly helpful in diagnosing the problem more accurately.

Thanks for your cooperation!

@SaicharanKandukuri
Copy link

SaicharanKandukuri commented Aug 5, 2024

Got same issue, In mobile devices keyboard shows tab instead of enter.

Show Image

Version: 1.4.4

Snippet ( using shadcn Form )

// rest is same from (https://emblor.jaleelbennett.com/integrations/shadcn-form)
<FormField
    control={form.control}
    name="tags"
    render={({ field }) => (
        <FormItem>
            <FormLabel>Tags</FormLabel>
            <FormControl>
                <TagInput
                    {...field}
                    styleClasses={{
                        inlineTagsContainer:
                            "border-2 border-[#E4E6EA] p-2 rounded-2xl",
                        tag: {
                            body: "flex text-[#619A17] items-center gap-2 bg-[#EDFFD6] rounded-full",
                            closeButton:
                                "text-red-500 hover:text-red-600",
                        },
                    }}
                    className="sm:min-w-[450px]"
                    placeholder="Enter Tags (optional)"
                    tags={tags}
                    setTags={(newTags) => {
                        setTags(newTags);
                        setValue(
                            "tags",
                            newTags as [
                                Tag,
                                ...Tag[],
                            ],
                        );
                    }}
                    activeTagIndex={
                        activeTagIndex
                    }
                    setActiveTagIndex={
                        setActiveTagIndex
                    }
                />
            </FormControl>
        </FormItem>
    )}
/>

@JaleelB JaleelB added the bug Something isn't working label Aug 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants