@equinor/eds-core-react 0.41.4-dev02092024 → 0.41.4-dev03092024

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.
@@ -6400,8 +6400,8 @@ const Popover$1 = /*#__PURE__*/react.forwardRef(function Popover({
6400
6400
  } = react$1.useInteractions([react$1.useDismiss(context)]);
6401
6401
  react.useEffect(() => {
6402
6402
  if (open) {
6403
- if (refs.floating.current) {
6404
- refs.floating.current?.showPopover();
6403
+ if (refs.floating.current?.isConnected) {
6404
+ refs.floating.current.showPopover();
6405
6405
  }
6406
6406
  } else {
6407
6407
  refs.floating.current?.hidePopover();
@@ -98,8 +98,8 @@ const Popover = /*#__PURE__*/forwardRef(function Popover({
98
98
  } = useInteractions([useDismiss(context)]);
99
99
  useEffect(() => {
100
100
  if (open) {
101
- if (refs.floating.current) {
102
- refs.floating.current?.showPopover();
101
+ if (refs.floating.current?.isConnected) {
102
+ refs.floating.current.showPopover();
103
103
  }
104
104
  } else {
105
105
  refs.floating.current?.hidePopover();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@equinor/eds-core-react",
3
- "version": "0.41.4-dev02092024",
3
+ "version": "0.41.4-dev03092024",
4
4
  "description": "The React implementation of the Equinor Design System",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -89,8 +89,8 @@
89
89
  "downshift": "9.0.8",
90
90
  "react-aria": "^3.34.1",
91
91
  "@equinor/eds-icons": "^0.21.0",
92
- "@equinor/eds-tokens": "0.9.2",
93
- "@equinor/eds-utils": "0.8.5"
92
+ "@equinor/eds-utils": "0.8.5",
93
+ "@equinor/eds-tokens": "0.9.2"
94
94
  },
95
95
  "scripts": {
96
96
  "build": "rollup -c --bundleConfigAsCjs && tsc -p tsconfig.build.json",