developit / developit/linkstate

Using with "range" input sets the state as a string, instead of a number

Open
#28 0 comments 0 reactions 0 assignees View on GitHub
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.