Skip to content

Commit

Permalink
fix: Layout.Sider toggle issue during print dialog activation (#46650)
Browse files Browse the repository at this point in the history
  • Loading branch information
anilpixel committed Dec 27, 2023
1 parent f4929cb commit f1b7fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/layout/Sider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const Sider = React.forwardRef<HTMLDivElement, SiderProps>((props, ref) => {
if (typeof window !== 'undefined') {
const { matchMedia } = window;
if (matchMedia! && breakpoint && breakpoint in dimensionMaxMap) {
mql = matchMedia(`(max-width: ${dimensionMaxMap[breakpoint]})`);
mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
try {
mql.addEventListener('change', responsiveHandler);
} catch (error) {
Expand Down

0 comments on commit f1b7fcc

Please sign in to comment.