Skip to content

Commit 180b289

Browse files
committed
chore: add open cls
1 parent 2442252 commit 180b289

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/DrawerPopup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ export default function DrawerPopup(props: DrawerPopupProps) {
314314
`${prefixCls}-${placement}`,
315315
rootClassName,
316316
{
317+
[`${prefixCls}-open`]: open,
317318
[`${prefixCls}-inline`]: inline,
318319
},
319320
)}

tests/index.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ describe('rc-drawer-menu', () => {
1818
const { unmount } = render(<Drawer open />);
1919
const drawer = document.querySelector('.rc-drawer');
2020
expect(drawer).toBeTruthy();
21+
expect(document.querySelector('.rc-drawer-open')).toBeTruthy();
2122
expect(document.body.contains(drawer)).toBeTruthy();
2223
unmount();
2324
});

0 commit comments

Comments
 (0)