mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 11:08:45 +08:00
fix: Drawer zIndex (#36958)
This commit is contained in:
parent
fdaa946f24
commit
3012c77482
@ -198,4 +198,14 @@ describe('Drawer', () => {
|
||||
|
||||
errorSpy.mockRestore();
|
||||
});
|
||||
|
||||
it('zIndex should work', () => {
|
||||
const { container } = render(<Drawer getContainer={false} visible zIndex={903} />);
|
||||
expect(container.querySelector('.ant-drawer-mask')).toHaveStyle({
|
||||
zIndex: 903,
|
||||
});
|
||||
expect(container.querySelector('.ant-drawer-content-wrapper')).toHaveStyle({
|
||||
zIndex: 903,
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@ -52,7 +52,6 @@ function Drawer({
|
||||
className,
|
||||
visible,
|
||||
children,
|
||||
zIndex,
|
||||
style,
|
||||
title,
|
||||
headerStyle,
|
||||
|
Loading…
Reference in New Issue
Block a user