Skip to content

Commit

Permalink
fix: enable rsjf's safeRenderCompletion hack to prevent cursor jumps
Browse files Browse the repository at this point in the history
  • Loading branch information
matthieu-foucault committed Nov 25, 2019
1 parent 63d09f7 commit 950c7e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/containers/Forms/Form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const FormComponent: React.FunctionComponent<Props> = ({
<JsonSchemaForm
omitExtraData
liveOmit
safeRenderCompletion
showErrorList={false}
ArrayFieldTemplate={FormArrayFieldTemplate}
FieldTemplate={FormFieldTemplate}
Expand Down
1 change: 1 addition & 0 deletions app/containers/User/UserForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const UserForm: React.FunctionComponent<Props> = ({
<JsonSchemaForm
omitExtraData
liveOmit
safeRenderCompletion
schema={userSchema}
formData={user}
showErrorList={false}
Expand Down

0 comments on commit 950c7e1

Please sign in to comment.