Skip to content

Commit

Permalink
fix(breadcrumb): use right arguments (#2056)
Browse files Browse the repository at this point in the history
  • Loading branch information
PrashantAshok authored Jan 12, 2024
1 parent ad87948 commit f98a24c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/ebay-breadcrumbs/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ class Breadcrumbs extends Marko.Component<Input, State> {
declare cachedWidths: number[];
declare newInput: boolean;

handleClick({ originalEvent }: MenuEvent) {
handleClick(originalEvent: KeyboardEvent) {
this.emit("select", { originalEvent, el: originalEvent?.target });
}

handleMenuBreadcrumb({ originalEvent, el }: MenuEvent) {
this.emit("select", { originalEvent, el });
handleMenuBreadcrumb(originalEvent: MenuEvent) {
this.emit("select", { originalEvent, el: originalEvent?.el });
}

onCreate() {
Expand Down

0 comments on commit f98a24c

Please sign in to comment.