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

[Events] Implement onFocus/onBlur #138

Open
conor-cafferkey-sociomantic opened this issue May 3, 2017 · 0 comments
Open

[Events] Implement onFocus/onBlur #138

conor-cafferkey-sociomantic opened this issue May 3, 2017 · 0 comments
Milestone

Comments

@conor-cafferkey-sociomantic
Copy link
Collaborator

Problem

There is no standardized way to hook into Flounder’s focus/blur state.

Wanted

Implement focus/blur events and corresponding onFocus/onBlur props.

Notes

Potential implementation as follows (@mousemke please let me know if this makes sense!)

onFocus should be triggered when:

  • refs.flounder receives focus

OR

  • toggleOpen is invoked

onBlur should be triggered when:

  • refs.flounder loses focus OR toggleClose is triggered

AND

  • refs.flounder does not have classes.OPEN

See also

This flounder-react issue: sociomantic-tsunami/flounder-react#11

@conor-cafferkey-sociomantic conor-cafferkey-sociomantic modified the milestones: Future, 1.3.0 May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant