Skip to content

Commit

Permalink
fix(header): click on div to close header-dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
max-umain committed Jan 20, 2025
1 parent 4d71e5c commit e1aaef6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class TdsHeaderDropdown {

handleSlottedItemClick = (event: MouseEvent | KeyboardEvent) => {
const eventSource = (event.target as HTMLElement).tagName.toLowerCase();
if (['a', 'button'].includes(eventSource)) {
if (['a', 'button', 'div'].includes(eventSource)) {
this.open = false;
}
};
Expand Down

0 comments on commit e1aaef6

Please sign in to comment.