Skip to content

AutoClose doesn't work on update #810

@jshap2000

Description

@jshap2000

Do you want to request a feature or report a bug?

bug

What is the current behavior?

When updating a toast, the toast loses it's ability to autoclose (even when including autoclose in the update body). You must hover directly over the toast to close it.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your CodeSandbox (https://codesandbox.io/s/new) example below:

Create a toast. Then try to update that toast before it autocloses. The toast will now never autoclose unless you manually hover over it.

What is the expected behavior?

It should autoclose at a new clip equivalent to the time of update.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?

Chrome. This has never worked and seems to correlate with other autoclose bugs.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions