Skip to content

validate and test hook form and component cooperation

Notifications You must be signed in to change notification settings

FindOut/react-hook-form-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-hook-form-test

Test bench for getting the usage flow right for an auto-submit form.

Features

  • filter
    • single-select
    • initially no selection
    • placeholder "Select filter..."
    • required
  • title
    • text input
    • initially empty
  • Save button
    • if no selection in filter:
      • sets focus on title
    • if no text in title:
      • activates title placeholder: "Enter title and click Save again..."
      • sets focus on title
      • skips saving

Any field change performs a form submit if all required fields have a value/selection.

Running

About

validate and test hook form and component cooperation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published