40818419 / react-code-input

React component for entering and validating PIN code.
MIT License
314 stars 129 forks source link

Fix issues around pasting into ReactCodeInput #154

Open acusti opened 2 years ago

acusti commented 2 years ago

note that this branch was branched off of #153 and will be easier to review in isolation from those changes.


fixed some issues around pasting, including:

codecov[bot] commented 2 years ago

Codecov Report

Merging #154 (1236d1f) into master (2599c5d) will increase coverage by 1.15%. The diff coverage is n/a.

:exclamation: Current head 1236d1f differs from pull request most recent head 3403072. Consider uploading reports for the commit 3403072 to get more accurate results Impacted file tree graph

@@            Coverage Diff             @@
##           master     #154      +/-   ##
==========================================
+ Coverage   96.55%   97.70%   +1.15%     
==========================================
  Files           2        2              
  Lines         145      131      -14     
  Branches       41       35       -6     
==========================================
- Hits          140      128      -12     
+ Misses          5        3       -2     
Impacted Files Coverage Δ
src/ReactCodeInput.js
src/utils.js
utils.js 100.00% <0.00%> (ø)
ReactCodeInput.js 97.63% <0.00%> (ø)

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 2599c5d...3403072. Read the comment docs.