Mobile Multiselect Component Transforming Values to Strings

I'm using Retool cloud.
I'm building a Retool mobile app with a multiselect component.
I pass the multiselect component values an array of integers, and it turns them into strings:

I expect the multiselect component to not transform the values I provide it.

Here's an application reproducing the issue:
BUG - mobile multiselect component.json (5.5 KB)

After thinking about this more, maybe this is actually expected because the value of an HTML <option> is always a string?

Hey @sgodoshian,

Looks like it is a bug since desktop version keeps them as number whereas mobile evaluates to string.

I'll make a fix for this soon !

Meanwhile you can cast it as number !

1 Like