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

onBlur handler #25

Closed
alexander-anosov-sb opened this issue Jul 13, 2016 · 1 comment
Closed

onBlur handler #25

alexander-anosov-sb opened this issue Jul 13, 2016 · 1 comment

Comments

@alexander-anosov-sb
Copy link

alexander-anosov-sb commented Jul 13, 2016

Hello!

I've noticed that onBlur handler only state changes

onBlur() {
    this.setState({
      open: false,
    });
}

without call a trigger onOpen/onClose. So if I pass onClose prop, my onClose will not be called on onBlur. Does it make sense to call setOpen(false) in onBlur?

onBlur() {
    this.setOpen(false);
}
@noyobo
Copy link
Contributor

noyobo commented Dec 17, 2016

Yes, this is a problem that I ignored.

@noyobo noyobo closed this as completed in 6f31777 Dec 17, 2016
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

2 participants