From 5ce04426e9acc08bdfe4dcdd85b024696b5f1e92 Mon Sep 17 00:00:00 2001 From: jmoenig Date: Wed, 6 Nov 2019 01:41:21 +0100 Subject: [PATCH] fixed dropdown menu generation for untranslated items --- HISTORY.md | 1 + src/blocks.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/HISTORY.md b/HISTORY.md index 64cb395c..37bd82c6 100755 --- a/HISTORY.md +++ b/HISTORY.md @@ -13,6 +13,7 @@ * blocks: don't translate variable names in drop-down menus * objects: don't translate variable names in "delete a variable" button menu * blocks: don't translate variable names in "inherit" block menu +* blocks: fixed dropdown menu generation for untranslated items ## v5.3.1: * **Notable Fixes:** diff --git a/src/blocks.js b/src/blocks.js index a84bb9b5..f3e0302e 100644 --- a/src/blocks.js +++ b/src/blocks.js @@ -8749,7 +8749,7 @@ InputSlotMorph.prototype.menuFromDict = function ( } else if (choices[key].length === 2) { // don't translate menu.addItem( key, - choices[key], + choices[key][0], null, // hint null, // color null, // bold