(
-
+
)} />
@@ -276,7 +276,7 @@ export const ReactHookFormDemo = () => {
(
-
+
)} />
@@ -285,7 +285,7 @@ export const ReactHookFormDemo = () => {
(
-
+
)} />
@@ -309,7 +309,7 @@ export const ReactHookFormDemo = () => {
(
- field.onChange(e.checked)} checked={field.value} className={classNames({ 'p-invalid': fieldState.invalid })} />
+ field.onChange(e.checked)} checked={field.value} className={classNames({ 'p-invalid': fieldState.error })} />
)} />
@@ -405,7 +405,7 @@ export const ReactHookFormDemo = () => {
(
-
+
)} />
@@ -417,7 +417,7 @@ export const ReactHookFormDemo = () => {
(
-
+
)} />
@@ -426,7 +426,7 @@ export const ReactHookFormDemo = () => {
(
-
+
)} />
@@ -450,7 +450,7 @@ export const ReactHookFormDemo = () => {
(
- field.onChange(e.checked)} checked={field.value} className={classNames({ 'p-invalid': fieldState.invalid })} />
+ field.onChange(e.checked)} checked={field.value} className={classNames({ 'p-invalid': fieldState.error })} />
)} />