Fix controls for unchangeable properties on status edit not being disabled (#17531)
Fixes #17520
This commit is contained in:
parent
ee40c2c5b0
commit
38845592c4
4 changed files with 8 additions and 4 deletions
|
@ -159,6 +159,7 @@ class PrivacyDropdown extends React.PureComponent {
|
|||
onChange: PropTypes.func.isRequired,
|
||||
noDirect: PropTypes.bool,
|
||||
container: PropTypes.func,
|
||||
disabled: PropTypes.bool,
|
||||
intl: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
|
@ -247,7 +248,7 @@ class PrivacyDropdown extends React.PureComponent {
|
|||
}
|
||||
|
||||
render () {
|
||||
const { value, container, intl } = this.props;
|
||||
const { value, container, disabled, intl } = this.props;
|
||||
const { open, placement } = this.state;
|
||||
|
||||
const valueOption = this.options.find(item => item.value === value);
|
||||
|
@ -267,6 +268,7 @@ class PrivacyDropdown extends React.PureComponent {
|
|||
onMouseDown={this.handleMouseDown}
|
||||
onKeyDown={this.handleButtonKeyDown}
|
||||
style={{ height: null, lineHeight: '27px' }}
|
||||
disabled={disabled}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue