Skip to content

Commit

Permalink
fix: disable fieldId field when editing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed May 18, 2020
1 parent d14c9b3 commit bc0e9b4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,17 @@ const GeneralTab = ({ field, form }: GeneralTabProps) => {
<Bind
name={"label"}
validators={validation.create("required")}
afterChange={afterChangeLabel}
afterChange={!field._id && afterChangeLabel}
>
<I18NInput label={"Label"} inputRef={inputRef} disabled={field._id} />
<I18NInput label={"Label"} inputRef={inputRef} />
</Bind>
</Cell>
<Cell span={6}>
<Bind
name={"fieldId"}
validators={[validation.create("required"), uniqueFieldIdValidator]}
>
<Input label={"Field ID"} />
<Input label={"Field ID"} disabled={field._id} />
</Bind>
</Cell>
<Cell span={12}>
Expand Down

0 comments on commit bc0e9b4

Please sign in to comment.