We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dc2d1f commit 84178ecCopy full SHA for 84178ec
packages/core/src/components/toast/toast.tsx
@@ -79,7 +79,9 @@ export class Toast extends AbstractPureComponent<IToastProps, {}> {
79
}
80
81
public componentDidUpdate(prevProps: IToastProps) {
82
- if (prevProps.timeout <= 0 && this.props.timeout > 0) {
+ if (prevProps.timeout !== this.props.timeout && this.props.timeout > 0) {
83
+ this.startTimeout();
84
+ } else if (prevProps.timeout <= 0 && this.props.timeout > 0) {
85
this.startTimeout();
86
} else if (prevProps.timeout > 0 && this.props.timeout <= 0) {
87
this.clearTimeouts();
0 commit comments