-
-
Notifications
You must be signed in to change notification settings - Fork 94
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
Initialize Drawer Within Element #44
Comments
getContainer={null} |
This didn't work for me:
|
Sorry thats the sample of what I am trying to achieve. |
I don't understand what you are saying. You're going to be render in render in div:<div className='containerGrid'>
<Drawer getContainer = {null}><div>test</div></Drawer>
</div> https://codesandbox.io/s/92l9541xrw render in bodyYour sample is in this way. <div className='containerGrid'>
<Drawer ><div>test</div></Drawer>
</div> |
翻译真累。。。 |
Doing the following worked for me <div style={{ transform: 'translate(0)' }}>
<Drawer ><div>test</div></Drawer>
</div> |
This example https://codesandbox.io/s/92l9541xrw does not work correctly with version 4.4.3. How can I make it work correctly? I want to do the same as this functionality (https://drawer-react-component.vercel.app/demo/no-mask), but inside a div. |
I have built this example https://stackblitz.com/edit/react-krx3ez?file=src/App.js, which has been useful, but I would like the content of the body is not under the drawer. |
Hi,
It is possible to have a drawer initialising only inside an element for example, drawer inside a div tag.
Here is some sample:
https://codesandbox.io/s/r5x6qnml6p
The text was updated successfully, but these errors were encountered: