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
If you want to have a custom animation on your modal window, such as a shake for incorrect password entry, you cannot because the fade in and out styles are added to the element with JS.
To Reproduce
Some code like this shows the problem (codesandbox).
const[classList,setClassList]=useState([]);<ModalclassNames={{modal: classList}}open={open}onClose={()=>{}}><buttononClick={()=>{setClassList(array=>[...array,"custom-animation"])}}>
Shake it
</button></Modal>
Bug report
Describe the bug
If you want to have a custom animation on your modal window, such as a shake for incorrect password entry, you cannot because the fade in and out styles are added to the element with JS.
To Reproduce
Some code like this shows the problem (codesandbox).
Expected behaviour
When the fade animation finished the style should be removed from the element
Screenshots
N/A
System information
N/A
Additional context
There is a work around I use at the moment but it would be nicer if the component handled it (codesandbox).
The text was updated successfully, but these errors were encountered: