SolidOS / SolidOS/solid-ui

'autofocus' Common Field Property

Open
#133 1 comment 0 reactions 1 assignee View on GitHub

@timbl is already working on this.

Since Dec 16, 2019.

enhancement
Dominant language
TypeScript
Stars
153
Forks
46
Avg merge
1d 8h
Merged PRs (30d)
7

Description

User Story

As a Form Designer, I want to specify which data element on a form should receive input focus as soon as the form is loaded, so that the user can start typing immediately without having to specifically click on or tab to that control.

Acceptance Criteria

  1. In the Form Model describing the form, I can set a 'autofocus' = true property on a single form data element to specify the data element that should receive focus when the form is loaded. The default is 'autofocus' = false.
  2. When the form is rendered based on the Form Model, focus is given to the specified data element. If the 'autofocus' = true property is set for multiple fields, the first field receives the focus.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.