I have the next material-ui dialog:
But when I click on the input field the social button will defocus and I don't want that:
The button:
export const SocialButton = (props: SocialButtonProps) => {
const classes = useStyles();
return (
<IconButton
centerRipple={true}
className={classes.socialButton}
size="small"
onClick={props.onClick}
aria-label="add"
component="span"
disableRipple
>
{props.icon}
</IconButton>
);
};
Style:
export const useStyles = makeStyles((theme: Theme) =>
createStyles({
socialButton: {
'&:focus': {
boxShadow: `0 0 0 0.1rem ${theme.palette.primary.main}`,
},
},
}),
);
Component:
<Grid container>
<Grid item>
<SocialButton
icon={<BehanceLogo />}
onClick={() => setSocialPlatform('behance')}
/>
....
</Grid>
</Grid>

