Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

Manual dismissal of toast notifications can lead to DOMException #53

Closed
jamesnetherton opened this issue Jun 27, 2018 · 0 comments
Closed
Labels

Comments

@jamesnetherton
Copy link
Contributor

I noticed an error within the console logs after dismissing a success toast notification:

Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
    at http://localhost:8181/hawtio/libs/@hawtio/ui/dist/hawtio-ui.js:787:26

I think the problem is here. When the timeout fires, it should check to see whether toastElem is still present in the DOM before attempting to remove it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant