We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2442252 commit 180b289Copy full SHA for 180b289
src/DrawerPopup.tsx
@@ -314,6 +314,7 @@ export default function DrawerPopup(props: DrawerPopupProps) {
314
`${prefixCls}-${placement}`,
315
rootClassName,
316
{
317
+ [`${prefixCls}-open`]: open,
318
[`${prefixCls}-inline`]: inline,
319
},
320
)}
tests/index.spec.tsx
@@ -18,6 +18,7 @@ describe('rc-drawer-menu', () => {
18
const { unmount } = render(<Drawer open />);
19
const drawer = document.querySelector('.rc-drawer');
20
expect(drawer).toBeTruthy();
21
+ expect(document.querySelector('.rc-drawer-open')).toBeTruthy();
22
expect(document.body.contains(drawer)).toBeTruthy();
23
unmount();
24
});
0 commit comments