How to collapse React Bootstrap mobile Navbar when tapping anywhere? - reactjs

I would like to collapse the mobile react bootstrap navbar when tapping anywhere on the screen. I know collapseOnSelect exists to make the mobile navbar collapse when an item is selected, but I'd also like to achieve the same thing when the user taps anywhere on the screen. Not sure if its possible, I can't find anything in the documentation.
Thanks!

Related

React Pro SideBar won't stay sticky to the right of screen when scrolling content

Has anyone used react-pro-sidebar before? I am trying to make the sidebar sticky and allow my content to scroll. But every time my content goes below the viewport, the sidebar is not sticking.

Material UI Drawer scrolls background page to top when opening

I am using material-ui as the UI package for an app.
In the app I'm using material-table with a custom infinite scroll.
When a row is clicked, a drawer opens from the right of the webpage.
Once the drawer opens, the background of the drawer (the infinite scroll table and general page) automatically scrolls back to the top of the page.
This makes this page very unfriendly to users.
I've tried the solutions that are mentioned here, but it doesn't seem to work.
I tried to use it like this:
<Drawer ModalProps={{disableRestoreFocus: true}} disableRestoreFocus>{content}</Drawer>
I couldn't find anymore information on material-ui github, or here on stack overflow.
Has anyone encountered this issue or know any other options I can try?
Thanks in advance.
For material-ui v4, you can add this attribute on the drawer component:
disableScrollLock={true}

To make a Material-UI div fixed always visible at the top of the page even when page scroll down

To make a Material-UI Grid or component fixed always visible at the top of the page even when page scroll down.
You can use react-sticky to do this, please check this out React-sticky
Please check this out Dock App Bar to top of window in react material ui, I think this Question is already answered here.

how to use Parent-child transitions with Material-ui on desktop

I have a list in a drawer that is docked to the browser screen (desktop) and I want to expand the content of the list item to fill the entire drawer when I click on it just like explained in this demo:
I could find ways of doing it using Android but not using react material-ui V1.0.
Has anyone already done something like it?

AppGyver steroids app - How to add scrolling to a Drawer

I implemented a drawer in my steroids application with similar styles as google+ drawer. However, I have several links on it, and when my device is in landscape mode I'm unable to see all the links, and I can't scroll the drawer.
I want to be able to scroll the drawer vertically as a normal webview, just like google+ drawer does.
Is that possible?
Can I embed a webview inside another?
I managed to fix this by adding heigh=device-height to the content meta tag. And I added overflow-x=hidden to just allow vertical scrolling.

Resources