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

Fix: Prevent Dropdown Overlap in Tag Selection Input #198

Closed
wants to merge 3 commits into from

Conversation

SyedImtiyaz-1
Copy link
Contributor

Description:

This PR fixes the dropdown overlap issue in the Tag selection input field by restructuring the dropdown placement. The dropdown was previously constrained within the input container, causing it to be overlapped by selected tags and other elements.

Fix Implemented:

✅ Moved the dropdown outside the input wrapper to ensure it stays below the field.
✅ Applied absolute top-full left-0 w-full to properly align the dropdown.
✅ Added z-[100] to ensure it appears above other elements.
✅ Used border border-gray-300 rounded-md for a better visual distinction.
✅ Improved onblur behavior to prevent unintended closing.

Screenshots

Screenshot from 2025-03-03 21-42-58

Screenshot from 2025-03-03 21-43-27

Steps to Reproduce the Fix:

  1. Click inside the "Brands" input field.
  2. Start typing to trigger the dropdown suggestions.
  3. Observe that the dropdown now stays below the input field instead of overlapping.
  4. Select a suggestion, and the dropdown closes as expected.

Related Issues:

Copy link

vercel bot commented Mar 3, 2025

Someone is attempting to deploy a commit to the openfoodfacts Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

vercel bot commented Mar 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
openfoodfacts-explorer ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2025 0:52am

@SyedImtiyaz-1
Copy link
Contributor Author

@VaiTon , creating a new PR fixing all the check !

@SyedImtiyaz-1 SyedImtiyaz-1 deleted the fix-Overlap branch March 6, 2025 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

UI Issue: Overlapping while adding tags
3 participants