Skip to content

Commit 0a26ed8

Browse files
authored
Expand isButton to catch ButtonWithDropdown as well (microsoft#154987)
1 parent c5ca633 commit 0a26ed8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/vs/base/browser/ui/list/listWidget.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ export function isMonacoEditor(e: HTMLElement): boolean {
259259
}
260260

261261
export function isButton(e: HTMLElement): boolean {
262-
if (e.tagName === 'A' && e.classList.contains('monaco-button')) {
262+
if ((e.tagName === 'A' && e.classList.contains('monaco-button')) ||
263+
(e.tagName === 'DIV' && e.classList.contains('monaco-button-dropdown'))) {
263264
return true;
264265
}
265266

0 commit comments

Comments
 (0)