Officers UI: behavior when user clicks enter/return while add or change form is open
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 62
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
**Steps to Reproduce**
**Description and Context**
Currently if you click enter while the officer edit or add form is open, the form saves and closes automatically. There doesn't seem to be a risk of losing work here because the form does save when it closes. Ideally though clicking the enter/return button wouldn't submit the add or change form - it might be more likely to happen by accident if the user is navigating through this with a keyboard.
**Current state**
Right now if the add or change form is open and the user hits enter on any input field (except country) the form submits. The existing changes that were entered are saved.
**Future state**
- If the user selects 'enter/return' select or activate the element in focus (same as clicking with mouse)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.