-
Notifications
You must be signed in to change notification settings - Fork 342
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
Handle click outside with floating dropdown #3577
Labels
BUG
Something isn't working
Comments
m0ksem
added a commit
to m0ksem/vuestic-ui
that referenced
this issue
Jul 7, 2023
m0ksem
added a commit
that referenced
this issue
Jul 7, 2023
@m0ksem when should this fix be available? Thanks |
Should be available now in 1.7.1 |
@m0ksem I just tested and everything looks great! The auto close for the date input even works! Thanks for the super quick turn around! 😄 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Right now floating drop-down teleports Dom elements to the body.
useClickOutside
must handle.va-dropdown
as if it inside .va-modal actually.Possible solution:
add data attribute to floating elements (
data-va-teleported-[hash]
) and it's actual parent (data-va-teleport-from-[hash]
). Then click outside can find where actually drop-down must be rendered, without teleport.You can find useUuid or something like this to get component instance uuid.
The text was updated successfully, but these errors were encountered: