|
@ -129,7 +129,7 @@ class PrivacyDropdownMenu extends React.PureComponent { |
|
|
// It should not be transformed when mounting because the resulting
|
|
|
// It should not be transformed when mounting because the resulting
|
|
|
// size will be used to determine the coordinate of the menu by
|
|
|
// size will be used to determine the coordinate of the menu by
|
|
|
// react-overlays
|
|
|
// 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 => ( |
|
|
{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 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'> |
|
|
<div className='privacy-dropdown__option__icon'> |
|
|