You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
I am using the popular rmwc library which ships with MDC 0.39.1. If you have a ripple-enabled button/FAB and long-press it with the mouse (so you get a full ripple) and then immediately hide the element then mdc.ripple.js will crash when trying to remove a class from a root_ that has already been destroyed.
classAppextendsReact.Component{state={show: true};render(){return(<React.Fragment><p>Long click on the button below (so you get a full ripple)</p>{this.state.show&&(<ButtonraisedonClick={()=>{this.setState({show: false});}}>
Long click me
</Button>)}</React.Fragment>);}}
I am using the popular
rmwc
library which ships with MDC 0.39.1. If you have a ripple-enabled button/FAB and long-press it with the mouse (so you get a full ripple) and then immediately hide the element thenmdc.ripple.js
will crash when trying to remove a class from aroot_
that has already been destroyed.Here is a codesandbox:
https://codesandbox.io/s/3rpo0829q6
The code that shows the problem:
The crash occurs in this MDC code (mdc.ripple.js)
The text was updated successfully, but these errors were encountered: