Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/renderer/common/components/toast/Toast.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ export class Toast extends React.Component<IProps, IState> {
}
}

public componentWillRemove() {
public componentWillUnmount() {
this.cancelTimer(false);
if (this.ref?.current) {
this.ref?.current.removeEventListener("transitionend", this.handleTransitionEnd, false);
this.ref.current.removeEventListener("transitionend", this.handleTransitionEnd, false);
}
}

Expand Down
Loading