Immutable picker

Summary: Disables the picker if the selection isn't editable

Differential Revision: D24419005

fbshipit-source-id: 433229a23db7fac947f574110326f5bf0dc51bc3
This commit is contained in:
Paco Estevez Garcia
2020-10-20 10:48:18 -07:00
committed by Facebook GitHub Bot
parent d733f8131f
commit 1be2f8c987

View File

@@ -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) =>