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

Dropdown Popper placement and offset don't work properly with mode='hover' #1179

Closed
Arcadia822 opened this issue Jan 1, 2024 · 0 comments
Closed
Labels
question Further information is requested

Comments

@Arcadia822
Copy link

Arcadia822 commented Jan 1, 2024

Description

I'm using dropdown menu with a bottom left button. when change mode to hover, the popper placement moves up and offset turns to 0. mode='click' works without problem.

        <UDropdown :items="user_menu" mode="click" :popper="{placement: 'right-end', offsetDistance: 12}">
                <UButton block color="primary" variant="outline" label="Avatar"/>
        </UDropdown>

image

*Edit:
offsetDistance actually works. its just works on the vertical side so thats why the popper also moves up. So the question turns into how to move popper right when mode=hover ?

@Arcadia822 Arcadia822 added the question Further information is requested label Jan 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant