@mantine/form
Advanced tools
Comparing version 5.0.0-alpha.18 to 5.0.0-alpha.19
@@ -13,3 +13,5 @@ 'use strict'; | ||
const { currentTarget } = val; | ||
if (currentTarget instanceof HTMLInputElement) { | ||
if (currentTarget instanceof HTMLTextAreaElement) { | ||
setValue(currentTarget.value); | ||
} else if (currentTarget instanceof HTMLInputElement) { | ||
if (currentTarget.type === "checkbox") { | ||
@@ -16,0 +18,0 @@ setValue(currentTarget.checked); |
@@ -9,3 +9,5 @@ function getInputOnChange(setValue) { | ||
const { currentTarget } = val; | ||
if (currentTarget instanceof HTMLInputElement) { | ||
if (currentTarget instanceof HTMLTextAreaElement) { | ||
setValue(currentTarget.value); | ||
} else if (currentTarget instanceof HTMLInputElement) { | ||
if (currentTarget.type === "checkbox") { | ||
@@ -12,0 +14,0 @@ setValue(currentTarget.checked); |
{ | ||
"name": "@mantine/form", | ||
"description": "Mantine form management library", | ||
"version": "5.0.0-alpha.18", | ||
"version": "5.0.0-alpha.19", | ||
"main": "cjs/index.js", | ||
@@ -6,0 +6,0 @@ "module": "esm/index.js", |
@@ -9,3 +9,3 @@ # Mantine Form | ||
```sh | ||
```bash | ||
# With yarn | ||
@@ -12,0 +12,0 @@ yarn add @mantine/form |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
104478
894