Skip to content

Switching to next instruction row impossible #882

@christianlupus

Description

@christianlupus

Description
It should be possible to switch to the next instruction row by pressing enter (see this snippet). However, an error is printed to the console.

Reproduction
Steps to reproduce the behavior:

  1. Edit a recipe
  2. Make sure it has multiple instruction rows.
  3. Select any instruction row but the last one
  4. Hit enter

Expected behavior
The next row is put to focus.

Actual behavior
Nothing happens visually. An error is logged to the console.

The reason is the fact that the instructions are textarea elements and not input elements. The search in this line will cause no matching DOM element to be found.

Metadata

Metadata

Labels

FrontendIssue or PR related to the frontend codebugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions