-
Notifications
You must be signed in to change notification settings - Fork 338
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
Close nested VDropdown without closing parent programmatically #874
Comments
bump Reproduction: https://stackblitz.com/edit/vitejs-vite-t58z89?file=src%2FApp.vue Expected behavior: only the closest dropdown is closed when calling the |
Same here, really need to fix it! |
zhaivoronok, kduvignau https://github.com/Akryum/floating-vue/blob/main/packages/floating-vue/src/components/Popper.ts#L454 if (this.shownChildren.size > 0) {
- this.$_pendingHide = true
return
} https://github.com/Akryum/floating-vue/blob/main/packages/floating-vue/src/components/Popper.ts#L477 - this.$_scheduleHide(event, skipDelay)
+ setTimeout(() => {
+ this.$_scheduleHide(event, skipDelay)
+ }, 0); |
Thanks for providing your solution @or2e ! FYI, there is an official package for floating ui for Vue, you can find out here : |
Hi was this fixed? @zhaivoronok @kduvignau @or2e |
Solution:
|
@ishaiavrahami No ( |
This is still not resolved after two years? |
Any updates here? |
vue 3 composition api:
|
Hello! I would like to close a nested VDropdown inside another VDropdown.
I tried with the
v-close-popper
directive on thediv
node and it works. However, I would like to do some processing (async calls for example) before closing the popper so I can't use the directive as-is.I also tried to use the
hide
method exposed by the#popper
slot, I got the same result.I also don't want to use
:auto-hide="false"
on the parent VDropdown because I want to autoclose when the click is outsideHere is a minimal example, when I click on Hello, the nested AND the parent VDropdown close.
The text was updated successfully, but these errors were encountered: