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

Revert EuiNavDrawer toggleOpen removal #2682

Merged
merged 4 commits into from
Dec 17, 2019

Conversation

thompsongl
Copy link
Contributor

@thompsongl thompsongl commented Dec 17, 2019

Summary

Fixes #2675, where it was pointed out that I had removed a function that appeared to be unused (#2643) and broke the docs. toggleOpen is, in fact, used via ref method reference in the docs for mobile nav toggling.

I also refactored it to use the setState callback instead of a timeout.

Checklist

- [ ] Check against all themes for compatability in both light and dark modes

  • Checked in mobile

- [ ] Checked in IE11 and Firefox
- [ ] Props have proper autodocs
- [ ] Added documentation examples
- [ ] Added or updated jest tests
- [ ] Checked for breaking changes and labeled appropriately
- [ ] Checked for accessibility including keyboard-only and screenreader modes

  • A changelog entry exists and is marked appropriately

@thompsongl thompsongl changed the title Revert EuiNavDrawer onToggle removal Revert EuiNavDrawer toggleOpen removal Dec 17, 2019
Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM!

@thompsongl thompsongl merged commit 0363814 into elastic:master Dec 17, 2019
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

Successfully merging this pull request may close these issues.

In navDrawer toggleOpen() function is not there
2 participants