diff --git a/CHANGELOG.md b/CHANGELOG.md index cd3d6847bc..fa820666da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [v10.3.60](https://github.com/Workday/canvas-kit/releases/tag/v10.3.60) (2024-09-16) + +### Components + +- fix: Handle empty stack ref in useAssistiveHideSiblings ([#2920](https://github.com/Workday/canvas-kit/pull/2920)) ([@NicholasBoll](https://github.com/NicholasBoll)) ## [v11.1.10](https://github.com/Workday/canvas-kit/releases/tag/v11.1.10) (2024-09-16) diff --git a/modules/react/popup/lib/hooks/useAssistiveHideSiblings.ts b/modules/react/popup/lib/hooks/useAssistiveHideSiblings.ts index f940e41ad3..7aaab19b6b 100644 --- a/modules/react/popup/lib/hooks/useAssistiveHideSiblings.ts +++ b/modules/react/popup/lib/hooks/useAssistiveHideSiblings.ts @@ -23,7 +23,7 @@ export const useAssistiveHideSiblings = createElemPropsHook(usePopupModel)(model } const siblings = [ - ...((model.state.stackRef.current?.parentElement?.children as any) as HTMLElement[]), + ...((model.state.stackRef.current?.parentElement?.children || []) as HTMLElement[]), ].filter(el => el !== model.state.stackRef.current); const prevAriaHidden = siblings.map(el => el.getAttribute('aria-hidden')); siblings.forEach(el => { diff --git a/modules/styling/package.json b/modules/styling/package.json index ba4ad4fcd1..66116a369e 100644 --- a/modules/styling/package.json +++ b/modules/styling/package.json @@ -54,8 +54,8 @@ "@emotion/serialize": "^1.0.2", "@emotion/styled": "^11.6.0", "@workday/canvas-kit-react": "^11.1.10", - "@workday/canvas-system-icons-web": "^3.0.0", "@workday/canvas-tokens-web": "^2.0.0", + "@workday/canvas-system-icons-web": "^3.0.0", "typescript": "4.2" } }