Immutable picker
Summary: Disables the picker if the selection isn't editable Differential Revision: D24419005 fbshipit-source-id: 433229a23db7fac947f574110326f5bf0dc51bc3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d733f8131f
commit
1be2f8c987
@@ -641,6 +641,7 @@ class DataDescriptionContainer extends PureComponent<{
|
|||||||
}, {});
|
}, {});
|
||||||
return (
|
return (
|
||||||
<Select
|
<Select
|
||||||
|
disabled={!this.props.editable}
|
||||||
options={options}
|
options={options}
|
||||||
selected={picker.selected}
|
selected={picker.selected}
|
||||||
onChangeWithKey={(value: string) =>
|
onChangeWithKey={(value: string) =>
|
||||||
|
|||||||
Reference in New Issue
Block a user