paper-menu's selected property is supposed to be type String. What happens when the data-values are Numbers?
I would expect selected to still be a String, especially because data-value$= should bind to the attribute, which is always of type String.
But if val0 and val1 are both Number properties, and val0 is set to 0 and val1 is 1, then selected is a String when the first item is selected, but a Number when the second item is selected.
Repro: http://jsfiddle.net/dmw9fgf9/ (see console)
paper-menu
'sselected
property is supposed to be type String. What happens when the data-values are Numbers?I would expect
selected
to still be a String, especially becausedata-value$=
should bind to the attribute, which is always of type String.But if val0 and val1 are both Number properties, and val0 is set to 0 and val1 is 1, then
selected
is aString
when the first item is selected, but aNumber
when the second item is selected.