-
-
Notifications
You must be signed in to change notification settings - Fork 298
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use deprecated class cause the snackbar not clickable #394
Comments
Change it to |
have the same issue |
There is a workaround for this? |
🔥 Fast fix: |
Apologies for responding late. Please follow the issue template. If you're using MUI v5, use Please let me know if you're having issues with the solutions above. |
@iamhosseindhv Upgrading to |
You can make something like this. style.ts: import {makeStyles, Theme} from '@material-ui/core/styles';
export default makeStyles((theme: Theme) => ({
root: {
margin: theme.spacing(.75, 0),
pointerEvents: 'all',
}
})); index.tsx: import React from 'react';
import {SnackbarProvider, SnackbarProviderProps} from 'notistack';
import useStyles from './style';
export default function Provider(props: SnackbarProviderProps): JSX.Element {
const classes = useStyles();
return <SnackbarProvider className={classes.root} {...props}/>;
} |
This issue has been fixed in notistack |
The fix doesn't work for people using createGenerateClassName with |
as @bartvde mentioned this is still an issue for those who use |
We have this issue and need to use |
In code
notistack/src/SnackbarContainer.tsx
Line 8 in 1806f30
it uses the deprecated class name mui/material-ui#24084
And cause the
pointer-events: all
not set. The whole snack bar becomes unclickable.The text was updated successfully, but these errors were encountered: