diff options
author | ThibG <thib@sitedethib.com> | 2019-08-06 11:59:14 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2019-08-06 11:59:14 +0200 |
commit | 792d0dd47078842fa96a2784a484247c3ff62f0c (patch) | |
tree | a268693cf6edca10cc5d05deb64154e624ac667a /app | |
parent | 115dab78f1cc5357281dcb593f04ac8b2629cec6 (diff) |
Fix privacy dropdown active state when dropdown is placed on top of it (#11495)
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/mastodon/features/compose/components/privacy_dropdown.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/compose/components/privacy_dropdown.js b/app/javascript/mastodon/features/compose/components/privacy_dropdown.js index d02a55be0..9db098544 100644 --- a/app/javascript/mastodon/features/compose/components/privacy_dropdown.js +++ b/app/javascript/mastodon/features/compose/components/privacy_dropdown.js @@ -229,7 +229,7 @@ class PrivacyDropdown extends React.PureComponent { return ( <div className={classNames('privacy-dropdown', placement, { active: open })} onKeyDown={this.handleKeyDown}> - <div className={classNames('privacy-dropdown__value', { active: this.options.indexOf(valueOption) === 0 })}> + <div className={classNames('privacy-dropdown__value', { active: this.options.indexOf(valueOption) === (placement === 'bottom' ? 0 : (this.options.length - 1)) })}> <IconButton className='privacy-dropdown__value-icon' icon={valueOption.icon} |