Contribute to Open Source. Search issue labels to find the right project for you!

Dropdown menu indicator appears in between words


Expected Behavior

The dropdown menu indicator triangle should appear at the end of the name of the current selection on the block.

Actual Behavior

In some cases, the indicator shows up in between words. Also, the dropdown menu itself is missing the non-unique part of each name.

<img width=“205” alt=“screen shot 2017-02-27 at 3 09 13 pm” src=“”>

It happens when all the items in the menu have a word in common, such as the “guitar” in “C guitar”, “D guitar”, “E guitar”, etc.

I’m guessing that this is due to a clever feature of Blockly called Prefix/Suffix Matching, documented here, which factors out repeated words in menu items. Probably we can simply disable it for cases where the menu items come from user generated content.

It’s worth considering using this feature to reduce the number of translation strings, if we have any menus with a fixed set of items containing repeated words- in that case, though, we would still want the menu indicator to appear at the end.

Steps to Reproduce

Open Add a musical instrument sprite like Bass or Guitar Look at the Play Sound block

Operating System and Browser

Mac OS 10.11.6 Chrome 56

Updated 08/06/2017 21:23 1 Comments

Fork me on GitHub