Skip to content

Commit 6e4190c

Browse files
authored
feat: add toast details in platformShowToastEvent stub (#331)
* feat: allow to pass toast details in stub * fix: formatting
1 parent e51afe8 commit 6e4190c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lightning-stubs/platformShowToastEvent/platformShowToastEvent.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@
77
const ShowToastEventName = 'lightning__showtoast';
88

99
export class ShowToastEvent extends CustomEvent {
10-
constructor() {
10+
constructor(toast) {
1111
super(ShowToastEventName, {
1212
composed: true,
1313
cancelable: true,
1414
bubbles: true,
15+
detail: toast,
1516
});
1617
}
1718
}

0 commit comments

Comments
 (0)