@jupyter/react-components
Advanced tools
Comparing version 0.16.2 to 0.16.3
@@ -5,3 +5,7 @@ import { useEffect, useLayoutEffect } from 'react'; | ||
useEffect(() => { | ||
if (value !== undefined && targetElement.current[propName] !== value) { | ||
if ( | ||
value !== undefined && | ||
targetElement.current && | ||
targetElement.current[propName] !== value | ||
) { | ||
// add try catch to avoid errors when setting read-only properties | ||
@@ -14,3 +18,3 @@ try { | ||
} | ||
}, [value]); | ||
}, [value, targetElement.current]); | ||
} | ||
@@ -31,3 +35,3 @@ | ||
}; | ||
}, [eventName, eventHandler, targetElement]); | ||
}, [eventName, eventHandler, targetElement.current]); | ||
} |
{ | ||
"name": "@jupyter/react-components", | ||
"version": "0.16.2", | ||
"version": "0.16.3", | ||
"description": "A component library for building extensions in Jupyter frontends.", | ||
@@ -35,3 +35,3 @@ "homepage": "https://github.com/jupyterlab-contrib/jupyter-ui-toolkit#readme", | ||
"dependencies": { | ||
"@jupyter/web-components": "^0.16.2", | ||
"@jupyter/web-components": "^0.16.3", | ||
"react": ">=17.0.0 <19.0.0" | ||
@@ -38,0 +38,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
172888
4501