feat(interface/dialog): disabled row property (#142)

* feat(interface/dialog): readonly, disabled flags

* Update TS prop types

* refactor(web/input): remove read only property

Co-authored-by: davidxd33 <dponce@gmail.com>
This commit is contained in:
davidxd33
2022-10-27 03:17:53 -04:00
committed by GitHub
parent 0d2c06e982
commit 4f69c7c5c1
7 changed files with 12 additions and 0 deletions

View File

@@ -25,6 +25,8 @@ const SelectField: React.FC<Props> = (props) => {
<Select
onChange={(e: React.ChangeEvent<HTMLSelectElement>) => props.handleChange(e.target.value, props.index)}
defaultValue={props.row.default || ''}
isDisabled={props.row.disabled}
isReadOnly={props.row.readonly}
>
{/* Hacky workaround for selectable placeholder issue */}
{!props.row.default && (