Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Idea: Allow tracking of onFocus #48

Closed
erikras opened this issue Sep 2, 2015 · 2 comments
Closed

Feature Idea: Allow tracking of onFocus #48

erikras opened this issue Sep 2, 2015 · 2 comments
Assignees
Labels
enhancement improvements in current API

Comments

@erikras
Copy link
Member

erikras commented Sep 2, 2015

  • Provide a handleFocus prop to be given to an input's onFocus.
  • Keep a focused boolean flag for each field in state.
  • Keep a visited boolean flag for each field that is set to true on first focus and only unset on initialize or reset.
  • Provide a currentFocus prop to the whole form with the currently focused field.

From discussion on slack with @olivierrr.

@erikras erikras added the enhancement improvements in current API label Sep 2, 2015
@erikras erikras self-assigned this Sep 2, 2015
@erikras
Copy link
Member Author

erikras commented Sep 4, 2015

Implemented, not exactly as described here, in v1.4.0.

@erikras erikras closed this as completed Sep 4, 2015
@lock
Copy link

lock bot commented Jun 3, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement improvements in current API
Projects
None yet
Development

No branches or pull requests

1 participant