Comments (9)
getContainer={null}
from drawer.
This didn't work for me:
<div className='containerGrid'>
<Drawer getContainer={null} ><div>test</div></Drawer>
</div>
.containerGrid {
grid-row-start: 3;
grid-row-end: 3;
grid-column-start: 1;
grid-column-end: 3;
}
from drawer.
from drawer.
Sorry thats the sample of what I am trying to achieve.
from drawer.
I don't understand what you are saying.
You're going to be render in div
. Or just putting Drawer
on div
, render in body
?
render in div:
<div className='containerGrid'>
<Drawer getContainer = {null}><div>test</div></Drawer>
</div>
https://codesandbox.io/s/92l9541xrw
render in body
Your sample is in this way.
<div className='containerGrid'>
<Drawer ><div>test</div></Drawer>
</div>
https://codesandbox.io/s/1zoo8q0lj4
from drawer.
翻译真累。。。
from drawer.
Doing the following worked for me
<div style={{ transform: 'translate(0)' }}>
<Drawer ><div>test</div></Drawer>
</div>
from drawer.
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.
from drawer.
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.
from drawer.
Related Issues (20)
- Next.JS server side: Expected server HTML to caontain a matching <div> in <div>
- undefined is not an object (evaluating 'n.startPos.x')
- node_modules/rc-drawer/lib/DrawerWrapper.d.ts(2,13): '=' expected. TS1005 HOT 2
- Make possible to reset drawer scroll position when closed
- Background color for drawer
- Consider the toolbar
- Can't set data-testid on drawer HOT 5
- Demo is out of date
- How do I make the main content slide to the side as well as the drawer?
- 安卓微信内置浏览器内无效 HOT 4
- if `mask` be set as `false`, drawer should not lock body?
- After closing the drawer, the focus of the page disappears making accessibility disappear and I can't use the tab button to move around the page HOT 1
- 6.1.4 版本设置 destroyOnClose 为true后,重新打开,弹窗里的内容没有渲染
- Package.json - wrong licence definition HOT 1
- Bug: ClassName prop is not merged correctly
- Bug: Css is broken on latest major release
- this package license is showing as none in NPM repository
- Bug: getContainer设置指定dom元素后依然是全屏 HOT 2
- Bug: panelRef 似乎获取不到 dom 元素 HOT 6
- Placement top or bottom does not work
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drawer.