React MaterialUI - Add TabIndex

Hi JSONForms team

How can i add TabIndex in my form? I need it to start at 4.

@jsonforms/core": “~2.5.2”
@jsonforms/material-renderers": “~2.5.2”
@jsonforms/react": “~2.5.2”

Hi @lealeones, If I understand correctly you want to configure the element which is auto focused?

You can do so via the UI Schema option focus: true which will set Material UI’s autoFocus attribute, e.g.

{
  type: 'Control',
  scope: '#/properties/name',
  options: {
    focus: true
  }
}

will set the auto focus to the Name control.

1 Like