question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[NavigationDrawer] - drawer shows when defaultVisible set to false

See original GitHub issue

Description

The NavigationDrawer does not appear to be respecting the defaultVisible property.

<NavigationDrawer
  navItems={[]}
  contentClassName="md-grid"
  drawerHeaderChildren={[]}
  drawerType={NavigationDrawer.DrawerTypes.TEMPORARY}
  defaultVisible={false}
  toolbarTitle="Nav Drawer Bug"
  toolbarChildren={[]}
  contentId="main-content"
>

or

<NavigationDrawer
  navItems={[]}
  contentClassName="md-grid"
  drawerHeaderChildren={[]}
  drawerType={NavigationDrawer.DrawerTypes.PERSISTENT}
  defaultVisible={false}
  toolbarTitle="Nav Drawer Bug"
  toolbarChildren={[]}
  contentId="main-content"
>

Link to a gist or code sample where the issue can be reproduced

You can find a codepen showing this behavior here.

Version

  • React - Tested with 5.14.2 and 16.0.0-beta.2
  • React-MD - Tested with 1.0.17 and 1.0.18
  • Browser - Tested on Chrome

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mkimberlincommented, Aug 22, 2017

Yeah, I agree. It’s not high priority. I can totally get around it.

BTW, I want to say thank you for this library. It’s easily the most complete and configurable MD component library that I’ve come across. I’ve been extremely happy using it and I really appreciate all the work you’ve clearly put into it. Further, the couple of times that I’ve run across an issue, you’ve been more responsive than I ever would have expected for someone working on this on their own. My hat is off to you…great work.

0reactions
mlaursencommented, Aug 22, 2017

Thank you! I am really glad you are enjoying it and it’s always great having some positive feedback about the experience to keep me motivated to work on it 😃. I’ve mostly been trying to be responsive, give feed back, and document well since it was what was missing for the other libraries (for me).

So thanks again for the feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why I set Visible Gone for Navigation Drawer but it don't work ...
But when I setNavigation() both true and false Navigation drawer shows. It wasn't hidden. And when set setNaviMenu is faulty java.lang.
Read more >
Drawer Navigator | React Navigation
When this is set to open , the drawer will be open from the initial render. It can be closed normally using gestures...
Read more >
How to hide Drawer Item from Drawer · Issue #2021 - GitHub
I have a screen which I would like to be part of the Drawer navigator but not to be visible as an item...
Read more >
Fragment Navigation Drawer | CodePath Android Cliffnotes
We want our main content view to have the navigation bar and hence android:fitsSystemWindows is set to true for the Toolbar . To...
Read more >
Getting Started with Navigation Drawer - DevExtreme
The Drawer is a dismissible or permanently visible panel that you can use for navigation in responsive web application layouts.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found