ngx-toastr
ngx-toastr copied to clipboard
closeButton click doesn't trigger onTap
Description
I think when the closeButton
option is true and the user clicks on the close icon it should trigger the onTap event. Or maybe have a separate EventEmitter that only emits when the user clicks on the close icon.
Can I implement it so the closeButton click triggers the onTap emitter and also send you a pull reqest?
Example
const foo: ActiveToast<any> = this.toastr.info('Text', 'Title');
foo.onHidden.subscribe(() => console.log('onHidden'));
foo.onTap.subscribe(() => console.log('onTap'));
foo.onAction.subscribe(() => console.log('onAction'));