Browse Source

Fix privacy dropdown active state when dropdown is placed on top of it (#11495)

tags/v2.9.3
ThibG 2 months ago
parent
commit
d8cf2a0fb6

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

@@ -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}

Loading…
Cancel
Save