Remove styles error when opening the provider

This commit is contained in:
Germán Martínez 2019-09-16 09:48:15 +02:00
parent aa1327c5af
commit edfece39f9
1 changed files with 8 additions and 6 deletions

View File

@ -32,7 +32,7 @@ const styles = () => ({
padding: 0,
boxShadow: '0 0 10px 0 rgba(33, 48, 77, 0.1)',
minWidth: '280px',
left: '4px',
borderRadius: '8px',
},
summary: {
borderBottom: `solid 2px ${border}`,
@ -68,11 +68,13 @@ const Layout = openHoc(({
<Popper open={open} anchorEl={providerRef.current} placement="bottom-end">
{({ TransitionProps }) => (
<Grow {...TransitionProps}>
<ClickAwayListener onClickAway={clickAway} mouseEvent="onClick" touchEvent={false}>
<List className={classes.root} component="div">
{providerDetails}
</List>
</ClickAwayListener>
<>
<ClickAwayListener onClickAway={clickAway} mouseEvent="onClick" touchEvent={false}>
<List className={classes.root} component="div">
{providerDetails}
</List>
</ClickAwayListener>
</>
</Grow>
)}
</Popper>