Skip to content
This repository was archived by the owner on Jan 14, 2021. It is now read-only.

Commit 71d3b33

Browse files
iamchaniibluebill1049
authored andcommitted
Fix wrong logic of check target.chcked (#43)
* Check target.checked is undefined (fix #41) * Fix wrong logic
1 parent 3f5efd0 commit 71d3b33

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ function getValue(target: any, { isCheckbox }: { isCheckbox: boolean }) {
1313
return target
1414
? isCheckbox
1515
? isUndefined(target.checked)
16-
? target.checked
17-
: target
16+
? target
17+
: target.checked
1818
: isUndefined(target.value)
1919
? target
2020
: target.value

0 commit comments

Comments
 (0)