We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 243cbee commit 5945e7cCopy full SHA for 5945e7c
1 file changed
plugins/field-colour/src/field_colour.ts
@@ -475,7 +475,7 @@ export class FieldColour extends Blockly.Field<string> {
475
* @param dy Change of y.
476
*/
477
private moveHighlightBy(dx: number, dy: number) {
478
- if (!this.highlightedIndex) {
+ if (this.highlightedIndex === null) {
479
return;
480
}
481
@@ -564,7 +564,7 @@ export class FieldColour extends Blockly.Field<string> {
564
* @returns Highlighted item (null if none).
565
566
private getHighlighted(): HTMLElement | null {
567
568
return null;
569
570
0 commit comments