Form Select does not handle integer in 'value'


#1

I noticed that the Select control does not work correctly if the ‘value’ property is an integer eg.

[{content: "aaa", value: 1},
 {content: "bbb", value: 2}        
]

The select loads properly but you cannot choose an options if loaded like this. Not sure if this is by design but it does make for a complication, surely ints should be ok for the value?

This works fine:

[{content: "aaa", value: "1"},
 {content: "bbb", value: "2"}        
]

#2

An example of this behavior here


#3

Unfortunately this is the designed behavior. Value attribute should be a string.