You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this: document.querySelector('#test').value
Returns: selectedItemLabel
Given its name, I would have expected the .value property to report the selected paper-item's value (selectedItemValue in the example) rather than its label. It is documented as such, so I assume this is an intentional decision, but shouldn't there be a similar readonly property which actually looks up its value as well? Might I suggest selectedItemValue?
The text was updated successfully, but these errors were encountered:
value
property is misleading as it does not report the value of the selected paper-item, but rather its innerHTML (label).In this scenario:
Using this:
document.querySelector('#test').value
Returns:
selectedItemLabel
Given its name, I would have expected the
.value
property to report the selected paper-item's value (selectedItemValue in the example) rather than its label. It is documented as such, so I assume this is an intentional decision, but shouldn't there be a similar readonly property which actually looks up its value as well? Might I suggest selectedItemValue?The text was updated successfully, but these errors were encountered: