Skip to content

Commit fc017bd

Browse files
committed
fix(CDropdown): menu not closing on button click
1 parent e09679a commit fc017bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/coreui-vue/src/components/dropdown/CDropdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ const CDropdown = defineComponent({
315315
}
316316

317317
const target = event.target as HTMLElement | null
318-
const FORM_TAG_RE = /^(input|select|option|textarea|form|button|label)$/i
318+
const FORM_TAG_RE = /^(input|select|option|textarea|form)$/i
319319

320320
if (isOnMenu && target && FORM_TAG_RE.test(target.tagName)) {
321321
return

0 commit comments

Comments
 (0)