Material-ui: Drawer not working in iPhone

Created on 31 Jan 2019  路  7Comments  路  Source: mui-org/material-ui

The Drawer works well on PC.
Also works on iphone but elements are invisible

| Tech | Version |
|--------------|---------|
| Material-UI | 3.6.1 |
| React | 16.3.2 |
| IOS| 12 |

render() {
  const { classes } = this.props;
  return (
    <Drawer
      variant="permanent"
      classes={{
        paper: classNames(classes.drawerPaper, !leftMenu.open && classes.drawerPaperClose),
      }}
      open={true}
    >
      <Divider/>
          {leftMenu.items.map((menuItem, index) => (
            <div id={menuItem.id} key={index}>
              <Tooltip classes={{tooltip: classes.lightTooltip}}
                       title={menuItem.name}
                       placement="right">
                <ListItem button
                          selected={menuItem.selected}
                          onClick={(event) => this.handleMenuItemClick(menuItem, event)}>
                  <ListItemIcon classes={{root: classNames(classes.menuIcon)}}>
                    <i className={menuItem.iconClass}/>
                  </ListItemIcon>
                </ListItem>
              </Tooltip>
            </div>
          ))}
    </Drawer>
  );
}

asdasdsad

Drawer question

All 7 comments

Can you put this example in a codesandbox reproduction please

Example in codesandbox

@kovaldmytro That鈥檚 quite a complex reproduction with a lot of other libraries and variables. Do you think you can simplify it? I don鈥檛 have time to look through right now but I can have a look at it later if no one else does by then

@kovaldmytro Something is wrong with your demo. We don't have this problem with ours.

capture d ecran 2019-02-01 a 10 54 36

This solves the problem.

  root: {
    flexGrow: 1,
    zIndex: 1,
    //overflow: "hidden",
    position: "relative",
    display: "flex"
  },

https://43n8wrmn79.codesandbox.io/

@joshwooding I think that we should start working on some higher level layout component. People shouldn't have to build it from scratch. It's time consuming.

@oliviertassinari overflow: hidden problem solved when menu is open but icon menu invisible when close.

@kovaldmytro Until proved otherwise, the issue is outside of the scope of the library, it's a generic CSS issue. You gonna need to find a solution on your own. On our side, we will provide more full layout solutions.

It helps, thx

Was this page helpful?
0 / 5 - 0 ratings

Related issues

anthony-dandrea picture anthony-dandrea  路  3Comments

pola88 picture pola88  路  3Comments

rbozan picture rbozan  路  3Comments

revskill10 picture revskill10  路  3Comments

mattmiddlesworth picture mattmiddlesworth  路  3Comments