museumsvictoria/nodel

Dynamic lists with numerical keys behave strangely

justparking opened this issue · 2 comments

Refer to full sample listed in #253 - if this is data is used instead:

Part of script.py

def main():
  local_event_DynamicList.emit([ { 'key': '1234', 'value': 'JP'} ,
                                 { 'key': '1235', 'value': 'AM'} ,
                                 { 'key': '1232', 'value': 'JG'} ,
                                 { 'key': '1212', 'value': 'NP'} ])

This is the very odd result:
image

And I'm not sure if <dynamicselect> would be affected by this kind of data too and we've just never come across it.

(@mcartmel FYI)

Bug fixed to properly support 'number' type of arg (#254).
morimoriysmoon/nodel@91230b4

Does 'dynamicselectbuttons' need to support 'boolean' type of arg? Please advise me.

We'll leave as is.