-
Notifications
You must be signed in to change notification settings - Fork 224
Cannot click the other elements #192
Comments
I'm having the same problem, did you find a solution to this? |
Same problem. Anyone have found a solution? |
wrap the whole content in Sidebar to make everything clickable |
but the new problem is now your whole app is in absolute |
You can overwrite the
|
The ROOT override didn't work. Is there another way. This component is super awesome, but I can't use it until it lets the other page elements get clicks. Thanks, |
Same problem. For me elements such as buttons and links are clickable, however the input text form is not working. |
The root override didn´t work for me too. |
The problem seems to be absolute positioning which makes the component to be rendered on top of all other content. I don't know how this component should be used with the default styles to make it work, but it's possible to remove the absolute positioning. The following style overrides worked for me:
EDIT: Hmm.. this fixes the cannot-click-other-content problem, but breaks the layout (menu content is shown even when the menu is in closed state). Have to investigate more. |
Just chiming in to say I'm experiencing the same problem - I have a google maps div with three buttons outside of it (I plan to style them on top of the map somewhere most likely, just in a rough version testing functionality). I love the sidebar component but yeah it breaks all the buttons that I currently have no matter where I arrange the components. |
I'm having the same problem. Nothing else is clickable :( |
I finally ended up doing as @saurabh-codeword suggested - wrapped the whole app as a child of react sidebar component. Broke the beauty of my app structure and required to rewrite part of my css to work with absolute positioning, but finally got it work. I just wonder if this is the intended way to use the library 🤔 |
That didn't work for me @ronkot. Moving on to a different plugin :( I like this one, but it's unusable when it blocks the page. |
I will try to come up with a fiddle today. We are using multiple |
So here is (roughly) how we are using the I am not having any issues with that setup. |
Thank you @TkDodo! This fiddle worked for me. This fix should probably be referenced in docs. |
I got it to work by putting the sidebar around my whole page component instead of just the header component. |
@cgcullen Thank you for your comment it helped me solve the problem. Thanks. |
these styles worked for me |
When it render react-sidebar component, it becomes that I cannot click any elements in the page.
Since the root element has the default style, it sets the layer above the other elements.
Am I missing something to configure?
The text was updated successfully, but these errors were encountered: