Skip to content

Issues using react-hook-form with reactstrap #7123

Answered by walshe
walshe asked this question in General
Discussion options

You must be logged in to vote

so seems it was the that was not diaplaying (Why ?). Now if I use a

for the feedback I can see that the validation works. But now it seems I can never get passed validation and form never submits wtf?

import React, { useCallback, useState, useEffect } from 'react';

import { connect } from 'react-redux';

import {
  Row,
  Col,
  CardBody,
  Card,
  CardTitle,
  FormText,
  Form,
  CustomInput,
  Label,
  FormGroup,
  Input,
  Button,
  InputGroupText,
  InputGroupAddon,
  FormFeedback
} from 'reactstrap';

import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';

import InputMask from 'react-input-mask';

import { useForm, Controller } from 'react-hook-form';
import * as yup fr…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by walshe
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants