react-hook-form
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -104,3 +104,3 @@ import { useRef, useState, useEffect } from 'react'; | ||
if (validate) { | ||
const fieldValue = isRadioInput(type) ? getRadioValue(options) : value; | ||
const fieldValue = isRadioInput(type) ? getRadioValue(options).value : value; | ||
if (typeof validate === 'function') { | ||
@@ -107,0 +107,0 @@ if (!validate(fieldValue)) { |
@@ -106,3 +106,3 @@ 'use strict'; | ||
if (validate) { | ||
const fieldValue = isRadioInput(type) ? getRadioValue(options) : value; | ||
const fieldValue = isRadioInput(type) ? getRadioValue(options).value : value; | ||
if (typeof validate === 'function') { | ||
@@ -109,0 +109,0 @@ if (!validate(fieldValue)) { |
{ | ||
"name": "react-hook-form", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.es.js", |
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
34255