From e54eea3da0de640e7b343381bddf9a439d638954 Mon Sep 17 00:00:00 2001 From: zuixinwang <59717852+zuixinwang@users.noreply.github.com> Date: Sun, 6 Aug 2023 16:18:28 +0800 Subject: [PATCH] fix(theme): close dropdown menus after an item is clicked (#2380) --- src/client/theme-default/components/VPFlyout.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/client/theme-default/components/VPFlyout.vue b/src/client/theme-default/components/VPFlyout.vue index 486c2505..5a992e8e 100644 --- a/src/client/theme-default/components/VPFlyout.vue +++ b/src/client/theme-default/components/VPFlyout.vue @@ -87,6 +87,12 @@ function onBlur() { transform: translateY(0); } +.button[aria-expanded="false"] + .menu { + opacity: 0; + visibility: hidden; + transform: translateY(0); +} + .button { display: flex; align-items: center;