Skip to content

FieldColour colour picker not navigable if current value is not on the palette #10437

Closed

Description

@cpcallen

Check for duplicates

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

Component

@blockly/field-colour

Description

If the current value of of a FieldColour is not one of the colours on the palette in the colour picker, it is not possible to navigate the palette using the cursor keys.

Reproduction steps

  1. Go to the demo page for the field-colour plugin.
  2. Drag the simple colour value block (second block in the toolbox) onto the workspace.
  3. Click on the colour field to open the colour picker.
  4. Use the cursor keys to move the selection around the palette. Note that this works as expected (unless you go to the top-left corner of the grid; see FiledColour colour picker keyboard nav gets stuck in the top left blockly-samples#2477).
  5. Press enter to pick a new colour, or press escape to cancel.
  6. Open the browser's JS console and enter the following code:
    Blockly.getMainWorkspace().getTopBlocks()[0].getField('COLOUR').setValue('#123456');
    
  7. Again click on the colour field to open the colour picker.
  8. Note that now the cursor keys have no effect.
  9. Click on any colour to choose it.
  10. Repeat steps 3–5 and note the picker now responds to cursor keys again.

Stack trace

Screenshots

No response

Activity

  1. cpcallen commented on Jan 17, 2025

    @cpcallen
    CollaboratorAuthor
  2. removed
    status: triageIssues awaiting triage by a Blockly team member
    on Jan 17, 2025
  3. added theissue type on Jul 8, 2026
  4. moved this from Todo to In Progress in Blocklyon Oct 21, 2026
  5. moved this from In Progress to Done in Blocklyon Oct 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

  • Status
    Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions