Skip to content

Add manageEphemeralFocus parameter to dropdown show functions #9078

@microbit-robert

Description

@microbit-robert

Check for duplicates

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

Description

For field editors where MakeCode uses both the widget div and the dropdown div in combination, this ephemeral focus error is raised. Unlike the Blockly samples field slider plugin, in MakeCode, focus is moved to the HTML input, not the dropdown, so the ephemeral focus handling needs to be on the widget, not the dropdown div.

Please can you add an extra parameter for manageEphemeralFocus to showPositionedByField and showPositionedByBlock, which can then be passed to showPositionedByRect. At the moment, manageEphemeralFocus defaults to true and no callers pass this arg in core.

Reproduction steps

Stack trace

Screenshots

Example of the type of block affected, note the focus on the HTML input on opening:
Image

Browsers

No response

Metadata

Metadata

Assignees

Labels

issue: bugDescribes why the code or behaviour is wrongissue: triageIssues awaiting triage by a Blockly team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions