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.