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

In navDrawer toggleOpen() function is not there #2675

Closed
Akshay090 opened this issue Dec 17, 2019 · 2 comments · Fixed by #2682
Closed

In navDrawer toggleOpen() function is not there #2675

Akshay090 opened this issue Dec 17, 2019 · 2 comments · Fixed by #2682
Assignees

Comments

@Akshay090
Copy link

Open the demo at https://elastic.github.io/eui/#/layout/nav-drawer switch to mobile view and click the expand navDrawer button it logs the error Uncaught TypeError: e.navDrawerRef.toggleOpen is not a function in console. I referred to the navDrawer file there is no such toogleOpen so how to open it in mobile. How to implement it, also that demo need to be fixed.

@thompsongl
Copy link
Contributor

Whoops! This is my fault. I removed it because I didn't see it used in src/: https://github.com/elastic/eui/pull/2643/files#diff-a888480f41f0acc7d364db5c355ab8a9L68-L80

I'll get it reverted.

@thompsongl thompsongl self-assigned this Dec 17, 2019
@thompsongl
Copy link
Contributor

thompsongl commented Dec 17, 2019

As for how to implement the mobile menu trigger, that requires extra setup. See the docs exampe for how: https://github.com/elastic/eui/blob/master/src-docs/src/views/nav_drawer/nav_drawer.js#L293-L301

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 a pull request may close this issue.

2 participants