File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ts/WoltLabSuite/Core/Component
wcfsetup/install/files/js/WoltLabSuite/Core/Component Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ class Snackbar extends EventTarget {
117117 return ;
118118 }
119119
120- this . dispatchEvent ( new CustomEvent ( "close" ) ) ;
120+ this . dispatchEvent ( new CustomEvent ( "snackbar: close" ) ) ;
121121
122122 // The animation to move the element vertically relative to its height
123123 // requires the value to be computed first.
@@ -138,7 +138,7 @@ class Snackbar extends EventTarget {
138138}
139139
140140interface SnackbarEventMap {
141- close : CustomEvent < void > ;
141+ "snackbar: close" : CustomEvent < void > ;
142142}
143143
144144// eslint-disable-next-line @typescript-eslint/no-unsafe-declaration-merging
@@ -182,7 +182,7 @@ class SnackbarContainer {
182182 this . #snackbars. push ( snackbar ) ;
183183 this . #element. prepend ( snackbar . element ) ;
184184
185- void snackbar . addEventListener ( "close" , ( ) => {
185+ void snackbar . addEventListener ( "snackbar: close" , ( ) => {
186186 const i = this . #snackbars. indexOf ( snackbar ) ;
187187 if ( i !== - 1 ) {
188188 this . #snackbars = this . #snackbars. splice ( i , 1 ) ;
You can’t perform that action at this time.
0 commit comments