mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-25 19:13:54 +00:00
Pass zIndex to context menu portal
This commit is contained in:
parent
4101d5e3a8
commit
38ed9f8602
1 changed files with 3 additions and 2 deletions
|
|
@ -80,11 +80,12 @@ class ContextMenu extends React.Component {
|
|||
offsetLeft,
|
||||
top,
|
||||
bottom,
|
||||
selected
|
||||
selected,
|
||||
zIndex
|
||||
} = this.props;
|
||||
return (
|
||||
selected && (
|
||||
<Portal top={offsetTop} left={offsetLeft}>
|
||||
<Portal top={offsetTop} left={offsetLeft} zIndex={zIndex}>
|
||||
<ul className={classnames("context-menu", { top, bottom })}>
|
||||
{children}
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue