简体   繁体   中英

Popper.js overlays the input field label

Popper.js overlays material-ui input field if the placement is flipping to the top . How avoid the overlaying?

The popper code:

<Popper
   id={id}
   open={open}
   anchorEl={this.state.anchorEl}
   style={{ zIndex: 13001 }}
   disablePortal={true}
   modifiers={{
     name: 'preventOverflow',
      options: {
        padding: 0,
       },
     }}
 >
  {children elements} 
</Popper>

在此处输入图片说明

要解决此问题,请对字段标签使用较大的z-index属性,对Popper元素使用较小的z-index

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM