Stop submitting a form if no new terms are allowed to be added on keypress Enter

Created on 16 May 2024, 6 months ago

Problem/Motivation

During usage of this module, I've discovered possible inconsistencies, when no new terms are allowed to be created
and you type some non-existing term name, it is impossible to select it with the mouse, which is fine, however, when you press Enter it submits the form (and this non-existing value). I think we should in this case prevent form submission.

Steps to reproduce

1. Install this module.
2. Add term reference field to node type.
3. Configure form display for node type and this field with:

Match operator: CONTAINS
Limit: 10
Min length: 1
Delimiter: ;
Allow Not Found message: No
Not Found message: The term '@term' will be added
Allow new terms: No 

4. Try to create a new node, fill in its required field information, and try to type non-existing terms under the term reference field which is using autocomplete deluxe with the above settings.
5. Press the Enter key after filling in the field.
6. See that the form is submitted.

Proposed resolution

Do not submit the form by typing non-existing terms and pressing the Enter key.

Remaining tasks

  • ✅ File an issue
  • ➖ Addition/Change/Update/Fix
  • ➖ Testing to ensure no regression
  • ➖ Automated unit testing coverage
  • ➖ Automated functional testing coverage
  • ➖ UX/UI designer responsibilities
  • ➖ Readability
  • ➖ Accessibility
  • ➖ Performance
  • ➖ Security
  • ➖ Documentation
  • ➖ Code review by maintainers
  • ➖ Full testing and approval
  • ➖ Credit contributors
  • ➖ Review with the product owner
  • ➖ Release notes snippet
  • ❌ Release

API changes

  • N/A

Data model changes

  • N/A

Release notes snippet

  • N/A
🐛 Bug report
Status

Active

Version

2.0

Component

Code (miscellaneous)

Created by

🇺🇦Ukraine andriy khomych

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024