Skip to content

Commit

Permalink
fix: update typing for Menu to fix build issue in archive (#6897)
Browse files Browse the repository at this point in the history
* fix typing issue for menu to fix build issue

* Change files
  • Loading branch information
chrisdholt authored Jan 23, 2024
1 parent 957d98a commit aed89ca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix typing issue for menu to fix build issue",
"packageName": "@microsoft/fast-foundation",
"email": "[email protected]",
"dependentChangeType": "patch"
}
4 changes: 2 additions & 2 deletions packages/web-components/fast-foundation/src/menu/menu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export class Menu extends FoundationElement {
}

e.preventDefault();
const changedItem: MenuItem = e.target as any as MenuItem;
const changedItem: MenuItem = (e.target as any) as MenuItem;

// closing an expanded item without opening another
if (
Expand Down Expand Up @@ -250,7 +250,7 @@ export class Menu extends FoundationElement {
item.addEventListener("focus", this.handleItemFocus);

if (item instanceof MenuItem || "startColumnCount" in item) {
item.startColumnCount = indent;
((item as unknown) as MenuItem).startColumnCount = indent;
}
});
};
Expand Down

0 comments on commit aed89ca

Please sign in to comment.