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

[#2018] usePopover - add default position #2019

Merged
merged 2 commits into from
Jun 30, 2022
Merged

Conversation

popov-a-e
Copy link
Contributor

@popov-a-e popov-a-e commented Jun 28, 2022

Close #2018

Description

va-dropdown__content-wrapper without top and left properties might position wrongly, which causes the original issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement/refactoring (non-breaking change that doesn't add any feature but make things better)

@m0ksem m0ksem added this to the 1.4.5 (current) milestone Jun 29, 2022
@@ -24,6 +24,14 @@ export const useDomRect = (target: Ref<HTMLElement | undefined>) => {
prev = rect
})

watch(target, (newVal) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This thing is important. It will update domRect exactly after it appears in DOM.

Copy link
Contributor

@m0ksem m0ksem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for notice! I made it a bit simpler.

@m0ksem m0ksem merged commit f667f47 into epicmaxco:develop Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Issue with opening va-select element
3 participants