Browse Source

Fix emoji-button appearing above privacy-dropdown (#11027)

master
mayaeh 5 years ago
committed by Eugen Rochko
parent
commit
210fa3a94e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/javascript/mastodon/features/compose/components/privacy_dropdown.js

+ 1
- 1
app/javascript/mastodon/features/compose/components/privacy_dropdown.js View File

@ -129,7 +129,7 @@ class PrivacyDropdownMenu extends React.PureComponent {
// It should not be transformed when mounting because the resulting
// size will be used to determine the coordinate of the menu by
// react-overlays
<div className={`privacy-dropdown__dropdown ${placement}`} style={{ ...style, opacity: opacity, transform: mounted ? `scale(${scaleX}, ${scaleY})` : null }} role='listbox' ref={this.setRef}>
<div className={`privacy-dropdown__dropdown ${placement}`} style={{ ...style, opacity: opacity, transform: mounted ? `scale(${scaleX}, ${scaleY})` : null, zIndex: 2 }} role='listbox' ref={this.setRef}>
{items.map(item => (
<div role='option' tabIndex='0' key={item.value} data-index={item.value} onKeyDown={this.handleKeyDown} onClick={this.handleClick} className={classNames('privacy-dropdown__option', { active: item.value === value })} aria-selected={item.value === value} ref={item.value === value ? this.setFocusRef : null}>
<div className='privacy-dropdown__option__icon'>

Loading…
Cancel
Save