Skip to content

jcq/storybook-6.x-controlled-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a minimal repo based on create-react-app to demonstrate an issue with Storybook 6.x-rc

To see the problem, start storybook with yarn storybook and select the story for the TextField component. We utilize useArgs hook to update the value prop for the controlled component; while this works fine in the "Canvas" mode, when used in the "Docs" mode, the component loses focus after every key press (thus every time the args are updated).

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published