@momentum-design/components 0.134.19 → 0.134.20

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.
package/dist/utils/dom.js CHANGED
@@ -251,7 +251,7 @@ export const getDomActiveElement = (root = document) => {
251
251
  * @param element - The element to check
252
252
  * @returns True if the element has the OverflowMixin methods
253
253
  */
254
- export const hasOverflowMixin = (element) => 'isWidthOverflowing' in element && typeof element.isWidthOverflowing === 'function';
254
+ export const hasOverflowMixin = (element) => element && 'isWidthOverflowing' in element && typeof element.isWidthOverflowing === 'function';
255
255
  /**
256
256
  * Recursively gets the host element if the provided element is inside a shadow DOM.
257
257
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@momentum-design/components",
3
3
  "packageManager": "yarn@3.2.4",
4
- "version": "0.134.19",
4
+ "version": "0.134.20",
5
5
  "engines": {
6
6
  "node": ">=20.0.0",
7
7
  "npm": ">=8.0.0"