Skip to content

Commit

Permalink
fix(ui5-shellbar): pass correct values for events details (#298)
Browse files Browse the repository at this point in the history
fixes: #297
  • Loading branch information
MapTo0 authored Apr 4, 2019
1 parent a26097b commit 2641ec6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/main/src/ShellBar.js
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,9 @@ class ShellBar extends WebComponent {
}

_handleNotificationsPress(event) {
this.fireEvent("notificationsPress");
this.fireEvent("notificationsPress", {
iconRef: this.shadowRoot.querySelector(".sapWCShellBarBellIcon"),
});
}

_handleProfilePress(event) {
Expand All @@ -620,7 +622,7 @@ class ShellBar extends WebComponent {

_handleProductSwitchPress(event) {
this.fireEvent("productSwitchPress", {
detail: this.shadowRoot.querySelector(".sapWCShellBarIconProductSwitch"),
iconRef: this.shadowRoot.querySelector(".sapWCShellBarIconProductSwitch"),
});
}

Expand Down

0 comments on commit 2641ec6

Please sign in to comment.