We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent edaf2e0 commit d25a75dCopy full SHA for d25a75d
src/Select.vue
@@ -280,7 +280,11 @@ const handleInputKeydown = (e: KeyboardEvent) => {
280
};
281
282
const handleClickOutside = (event: MouseEvent) => {
283
- if (containerRef.value && !containerRef.value.contains(event.target as Node)) {
+ const target = event.target as Node;
284
+ const isInsideContainer = containerRef.value && containerRef.value.contains(target);
285
+ const isInsideMenu = menuRef.value && menuRef.value.contains(target);
286
+
287
+ if (!isInsideContainer && !isInsideMenu) {
288
closeMenu();
289
}
290
0 commit comments