fix: Fix displaying HTML elements in `FieldDropdown`. by gonfunko · Pull Request #9258 · RaspberryPiFoundation/blockly

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@gonfunko

Copy link Copy Markdown

Contributor

@gonfunko gonfunko commented

Jul 28, 2025

edited

Loading

The basics

The details

Resolves

Fixes #9247

Proposed Changes

This PR fixes FieldDropdown to not attempt to spread HTMLElement menu options, which caused later checks for instanceof HTMLElement to fail. This allows HTML elements to be properly displayed in dropdown fields.

@gonfunko gonfunko requested a review from a team as a code owner

July 28, 2025 20:13

@gonfunko gonfunko requested a review from maribethb

July 28, 2025 20:13

@github-actions github-actions bot added PR: fix

Fixes a bug

and removed PR: fix

Fixes a bug

labels

Jul 28, 2025

@gonfunko gonfunko merged commit c9a8221 into develop

Jul 28, 2025

18 checks passed

@gonfunko gonfunko deleted the html-dropdowns branch

July 28, 2025 20:33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@maribethb maribethb maribethb approved these changes

Assignees

@maribethb maribethb

Labels

PR: fix

Fixes a bug

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Problem using HTML elements in a dropdown field

2 participants

@gonfunko @maribethb