Reactjs – MUI custom switch (IOSSwitch) sliding animation does not work when add onChange event
I am using the from Material UI. Everything works fine but when I add onChange event handler to control the value of the switch the sliding animation does not work anymore. The switch ref: https://mui.com/material-ui/react-switch/#customization. I couldn't figure out how…