dropDownMenu widget breaks in a very particular scenario

If I have names that begin with numbers this breaks the dropDownMenu so it reports the label as None if it’s being bound to from another parameter.

This is happening because despite the name being a string dropDownMenu is interpreting it as an index. You’ll see in my example that the name 1test is being redirected to index 1 rather than it’s correct index of 0 and 3test is being redirected to index 3 which doesn’t exist and then changes the label to None.

In my working situation my names are specific UUID’s which might start with 224 or something and then it’ll select index 224 rather than the name ‘224xxxxxxxx’.

You can work around this by binding the other way around but unfortunately in my situation the bind is dynamic which means the menu must be the master as the expression needs to be in there.

I’ve attached a simple example tox to reproduce.

base_brokenmenu.tox (76.1 KB)

Hi @Ennui

thanks for reporting this, we are having a look.

cheers
Markus