@team-monolith/cds 1.107.4 → 1.107.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,3 @@ import { CSSInterpolation } from "@emotion/serialize";
2
2
  export declare const MAIN_CONTAINER_STYLE: import("@emotion/utils").SerializedStyles;
3
3
  export declare const TABLET: (style: CSSInterpolation) => import("@emotion/utils").SerializedStyles;
4
4
  export declare const MOBILE: (style: CSSInterpolation) => import("@emotion/utils").SerializedStyles;
5
- export declare const BREAKPOINTS: {
6
- mobile: number;
7
- tablet: number;
8
- };
@@ -18,7 +18,3 @@ export const MOBILE = (style) => css `
18
18
  ${style}
19
19
  }
20
20
  `;
21
- export const BREAKPOINTS = {
22
- mobile: 719,
23
- tablet: 1279,
24
- };
@@ -29,7 +29,9 @@ const DropdownMenu = React.forwardRef(function DropdownMenu(props, ref) {
29
29
  ${ORIGIN_PROPS_TO_MARGIN(anchorOrigin, isNestedMenu)}
30
30
  }
31
31
  `;
32
- if (!anchorEl) {
32
+ // anchorEl DOM에 없거나 display:none이면 위치 계산이 실패합니다.
33
+ const isAnchorVisible = !!anchorEl && anchorEl.isConnected && anchorEl.getClientRects().length > 0;
34
+ if (!isAnchorVisible) {
33
35
  return _jsx(_Fragment, {});
34
36
  }
35
37
  // 최상위 드롭다운 메뉴
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@team-monolith/cds",
3
- "version": "1.107.4",
3
+ "version": "1.107.6",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "sideEffects": false,