Commit daeef6d 1 parent 27ed118 commit daeef6d Copy full SHA for daeef6d
File tree 2 files changed +10
-1
lines changed
2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -135,9 +135,16 @@ export class BottomSheet extends LitElement {
135
135
}
136
136
}
137
137
} ;
138
-
138
+
139
139
private handleDismiss = ( ) : void => {
140
140
this . disappear = true ;
141
+
142
+ this . dispatchEvent (
143
+ new CustomEvent ( 'close' , {
144
+ bubbles : true ,
145
+ composed : true ,
146
+ } ) ,
147
+ ) ;
141
148
} ;
142
149
143
150
private handleAnimationEnd = ( ) => {
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ import styles from './bottom-sheet.style';
24
24
* @cssprop [--tap-bottom-sheet-header-padding=12px]
25
25
* @cssprop [--tap-bottom-sheet-background=--tap-sys-color-surface-primary]
26
26
* @cssprop [--tap-bottom-sheet-content-overflow-y=scroll]
27
+ *
28
+ * @fires close - Fires when the bottom sheet closes.
27
29
*/
28
30
@customElement ( 'tap-bottom-sheet' )
29
31
export class TapBottomSheet extends BottomSheet {
You can’t perform that action at this time.
0 commit comments