You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I'm encountering an issue with the dropdown menu's alignment. The dropdown appears misaligned relative to the input field.
When the dropdown opens, it does not align properly with the input field (or anchor). Instead, it either shifts too far to the left, right, or appears outside the expected container.
The dropdown menu (ComboboxContent) should align directly below the input field. Instead, it appears offset (either horizontally or vertically). Adjusting CSS such as margin or padding hasn’t resolved the issue.
How can I fix the dropdown alignment issue for the MultiSelect component It is a issue with a class being not properly used but I am not sure what class have been affecting positioning?
Reproduction
https://stackblitz.com/edit/tdkd3r-rvzugw?file=src%2Fcomponents%2FMultiSelect.vue
Describe the bug
I'm implementing a shadcn/ui Multiselect component in vue 3 for a form. https://www.shadcn-vue.com/docs/components/tags-input
But I'm encountering an issue with the dropdown menu's alignment. The dropdown appears misaligned relative to the input field.
When the dropdown opens, it does not align properly with the input field (or anchor). Instead, it either shifts too far to the left, right, or appears outside the expected container.
Component Details:
Form Usage:
Custom MultiSelect Implementation:
I use Radix Vue's Combobox for dropdown positioning. Here's a simplified version of the implementation:
The dropdown menu (ComboboxContent) should align directly below the input field. Instead, it appears offset (either horizontally or vertically). Adjusting CSS such as margin or padding hasn’t resolved the issue.
Here is the stackblitz example: https://stackblitz.com/edit/tdkd3r-rvzugw
How can I fix the dropdown alignment issue for the MultiSelect component It is a issue with a class being not properly used but I am not sure what class have been affecting positioning?
System Info
Contributes
The text was updated successfully, but these errors were encountered: