Skip to content

Commit e8d4a87

Browse files
authored
fix: Don't call blur() when mouse leaves the colour picker. (#2499)
1 parent bf5ae0a commit e8d4a87

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

plugins/field-colour/src/field_colour.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -547,11 +547,10 @@ export class FieldColour extends Blockly.Field<string> {
547547
}
548548

549549
/**
550-
* Handle a mouse leave event. Blur the picker and unhighlight
551-
* the currently highlighted colour.
550+
* Handle a mouse leave event by unnhighlighting the currently highlighted
551+
* colour.
552552
*/
553553
private onMouseLeave() {
554-
this.picker?.blur();
555554
const highlighted = this.getHighlighted();
556555
if (highlighted) {
557556
Blockly.utils.dom.removeClass(highlighted, 'blocklyColourHighlighted');

0 commit comments

Comments
 (0)