andrewhathaway / Winterfell

Generate complex, validated and extendable JSON-based forms in React.
http://winterfell.andrewhathaway.net
MIT License
785 stars 116 forks source link

Added onFocus listener #107

Closed marianocarpentier closed 6 years ago

marianocarpentier commented 6 years ago

In the project I'm working we need to update another React component in real time as we complete the form. The other component will highlight the currently focused input. That's why I added the onFocus callback in order to notify the container about the focus change making it able to propagate the change as required.

andrewhathaway commented 6 years ago

Following your work on the progress bar, it seems this PR is mostly a personal fork. Winterfell does not set any styling, nor does it set classnames by itself. Happy for you to maintain your own fork, of course, but at the moment I'm going to close this PR! :)