@codeleap/web 3.25.5 → 3.25.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "3.25.5",
3
+ "version": "3.25.6",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -421,7 +421,7 @@ export const Select = forwardRef<HTMLInputElement, SelectProps>(
421
421
  tabSelectsValue={false}
422
422
  tabIndex={0}
423
423
  backspaceRemovesValue={true}
424
- menuPortalTarget={document.body}
424
+ menuPortalTarget={typeof document === 'undefined' ? undefined : document.body}
425
425
  {...otherProps}
426
426
  {..._props}
427
427
  onKeyDown={isFocused ? handleKeyDown : null}