Skip to content

Investigate why calling field.getFocusableElement().focus() doesn't update the cursor correctly #499

@RoboErikG

Description

@RoboErikG

Check for duplicates

  • I have searched for similar issues before opening a new one.

Description

This is causing tests that depend on programmatically focusing on a field to fail.

Reproduction steps

  1. Open up the console and set up a field variable that points at some field in the workspace.
  2. In console use setTimeout(() => {field.getFocusableElement().focus()}, 5000);
  3. Click on a different block than the one that will get focused
  4. After focus moves to the field from the timeout, press up on the keyboard
  5. See the focus jump back to where it was after clicking (moved up one)

Stack trace

Screenshots

No response

Browsers

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions