developit / developit/linkstate
Using with "range" input sets the state as a string, instead of a number
Open
- Dominant language
- JavaScript
- Stars
- 292
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Relevant line to change: https://github.com/developit/linkstate/blob/master/src/index.js#L19
Would be nice if this used "valueAsNumber" if the input type is `range` or `number`.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start at src/index.js line 19, where the input value is read. Check how range and number inputs are handled, then verify that the resulting state value is numeric rather than a string for those input types.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 35/100