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
{{ message }}
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.
Note that the event.target.value is a String not numeric and the assignment below will cause the passed in property to receive a string.
I guess parsing the string to a number might be the easiest solution, or is there something else going on here?
Steps to reproduce
<div>Slider on a nested attribute: </div><paper-sliderid="slider1"min="0"max="100"value={{settings.sliderValue}}editable></paper-slider><div>Slider on a primary attribute: </div><paper-sliderid="slider2"min="0"max="100"value={{sliderValue}}editable </paper-slider>
Browsers Affected
Chrome
Firefox
The text was updated successfully, but these errors were encountered:
<input>s and <paper-input>s, even type=number, always return a string value, so that's why event.target.value is a string. It seems to make sense to do this.value = parseFloat(event.target.value) in _changeValue - WDYT @notwaldorf (who's more familiar with <paper-input>)?
Description
Use of a nested attribute passed to a paper-slider will cause it to always set a string value.
Expected outcome
paper-slider
should set a number.Actual outcome
Note that the
event.target.value
is a String not numeric and the assignment below will cause the passed in property to receive a string.I guess parsing the string to a number might be the easiest solution, or is there something else going on here?
Steps to reproduce
Browsers Affected
The text was updated successfully, but these errors were encountered: