Skip to content

Commit

Permalink
chore(release): re-add return element focus call
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-iden committed Mar 14, 2024
1 parent d470d6f commit c6373be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/pharos/src/components/toast/pharos-toaster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@ export class PharosToaster extends ScopedRegistryMixin(PharosElement) {
private _closeToast(event: CustomEvent): void {
const { id } = <ToastCloseDetail>(<CustomEvent>event).detail || {};
this._toasts = this._toasts.filter((toast) => toast.id !== id);
this._focusOnReturnElements(this.returnElements);
}

private _renderToast(toast: ToastDetail): TemplateResult {
Expand Down

0 comments on commit c6373be

Please sign in to comment.