File tree 3 files changed +3
-0
lines changed
3 files changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
10
10
### Fixed
11
11
12
12
- autofocus bug ([ #19 ] ( https://github.com/codewithkyle/notifyjs/issues/19 ) )
13
+ - action button bug ([ #20 ] ( https://github.com/codewithkyle/notifyjs/issues/20 ) )
13
14
14
15
## [ 2.1.1] - 2021-01-21
15
16
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ export class SnackbarComponent extends HTMLElement {
12
12
const target = e . currentTarget as HTMLElement ;
13
13
const index = parseInt ( target . dataset . index ) ;
14
14
this . settings . buttons [ index ] . callback ( ) ;
15
+ this . remove ( ) ;
15
16
} ;
16
17
17
18
private handleCloseClickEvent : EventListener = ( ) => {
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ export class ToastComponent extends HTMLElement {
16
16
const target = e . currentTarget as HTMLElement ;
17
17
const index = parseInt ( target . dataset . index ) ;
18
18
this . settings . buttons [ index ] . callback ( ) ;
19
+ this . remove ( ) ;
19
20
} ;
20
21
21
22
private render ( ) {
You can’t perform that action at this time.
0 commit comments