Skip to content

Commit

Permalink
Merge pull request #204 from lorengreenfield/convert-number-input-to-…
Browse files Browse the repository at this point in the history
…number

convert-number-input-to-number
  • Loading branch information
lorengreenfield committed May 3, 2020
2 parents 8c3b19d + 3d296fa commit 875e234
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion halfcab.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function defineRoute (routeObject) {

function formField (ob, prop) {
return e => {
ob[prop] = e.currentTarget.type.toLowerCase() === 'checkbox' || e.currentTarget.type.toLowerCase() === 'radio' ? e.currentTarget.checked : e.currentTarget.type.toLowerCase() === 'number' ? Number(e.currentTarget.value) : e.currentTarget.value
ob[prop] = e.currentTarget.type === 'checkbox' || e.currentTarget.type === 'radio' ? e.currentTarget.checked : e.currentTarget.type === 'number' ? Number(e.currentTarget.value) : e.currentTarget.value
let validOb
let touchedOb
let validFound
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "halfcab",
"version": "13.0.1",
"version": "13.0.2",
"type": "module",
"description": "A simple universal JavaScript framework focused on making use of es2015 template strings to build components.",
"main": "halfcab.mjs",
Expand Down

0 comments on commit 875e234

Please sign in to comment.