slider
slider copied to clipboard
Add a way to determine event source from onChange event
We've encountered a usecase where we needed to handle onChange event differently depending if the click originated from a label or a slider element.
This fork adds a source
to the onChange argument dictionary, that takes values keyboard
|label
|slider
and allows to handle such a usecase.
Codecov Report
Merging #578 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #578 +/- ##
=======================================
Coverage 95.18% 95.18%
=======================================
Files 2 2
Lines 83 83
Branches 25 25
=======================================
Hits 79 79
Misses 4 4
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update c61206e...bc5a30b. Read the comment docs.
@aleqsio any chance you could amend your PR to only include the changes you intended to commit rather than ones that have been changed from something like prettier (quotes, line breaks etc.)?
Rebase please.