From 2b4b4c44db97ef9cd44bf394fbb8c112f36771c7 Mon Sep 17 00:00:00 2001 From: Aaron Dodson Date: Tue, 25 Mar 2025 14:15:38 -0700 Subject: [PATCH] fix: Don't call blur() when mouse leaves the colour picker. --- plugins/field-colour/src/field_colour.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugins/field-colour/src/field_colour.ts b/plugins/field-colour/src/field_colour.ts index 0e05fbb5c..7c184d193 100644 --- a/plugins/field-colour/src/field_colour.ts +++ b/plugins/field-colour/src/field_colour.ts @@ -547,11 +547,10 @@ export class FieldColour extends Blockly.Field { } /** - * Handle a mouse leave event. Blur the picker and unhighlight - * the currently highlighted colour. + * Handle a mouse leave event by unnhighlighting the currently highlighted + * colour. */ private onMouseLeave() { - this.picker?.blur(); const highlighted = this.getHighlighted(); if (highlighted) { Blockly.utils.dom.removeClass(highlighted, 'blocklyColourHighlighted');