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

Menu dropdown alignment to different container than DropdownToggle #6730

Open
mklekowski opened this issue Dec 6, 2023 · 0 comments
Open

Comments

@mklekowski
Copy link

Is your feature request related to a problem? Please describe

I want to align dropdown menu to the left (the wole dropdown container, see picture), but also use popper functionality.
image

Now it is currently possible, when we set align={{sm: "start"}}, which will disable popper completely.

Describe the solution you'd like

It should be possible to pass ref element to popper config. Now it's not possible. The dropdown functionality is controlled by @restart/ui library - I can create a ticket there also.

Describe alternatives you've considered

Alternatively, react-bootstrap can expose simpler components without logic, like DropdownToggle (without useDropdownToggle), DropdownMenu (without useDropdownMenu), so users can build easily their own DropdownComponent with Popper directly.

Additional context

No response

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

No branches or pull requests

1 participant