Skip to content

Commit 8dae5bf

Browse files
author
Martin R. Hristov
committed
fix(ui5-shellbar): pass correct values for events details
fixes: #297
1 parent a26097b commit 8dae5bf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/main/src/ShellBar.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,9 @@ class ShellBar extends WebComponent {
609609
}
610610

611611
_handleNotificationsPress(event) {
612-
this.fireEvent("notificationsPress");
612+
this.fireEvent("notificationsPress", {
613+
iconRef: this.shadowRoot.querySelector(".sapWCShellBarBellIcon"),
614+
});
613615
}
614616

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

621623
_handleProductSwitchPress(event) {
622624
this.fireEvent("productSwitchPress", {
623-
detail: this.shadowRoot.querySelector(".sapWCShellBarIconProductSwitch"),
625+
iconRef: this.shadowRoot.querySelector(".sapWCShellBarIconProductSwitch"),
624626
});
625627
}
626628

0 commit comments

Comments
 (0)