material-ui-popup-state
Advanced tools
Comparing version 5.0.3 to 5.0.4
{ | ||
"name": "material-ui-popup-state", | ||
"version": "5.0.3", | ||
"version": "5.0.4", | ||
"description": "easiest way to create menus, popovers, and poppers with material-ui", | ||
@@ -61,3 +61,3 @@ "main": "index.js", | ||
"build:demo": "rimraf demo-dist && cross-env NODE_ENV=production BABEL_ENV=es5 webpack --config demo/webpack.config.js && (cd demo; copy index.html ../demo-dist/) && copy .circleci/config.yml demo-dist/", | ||
"predeploy": "yarn build:demo", | ||
"predeploy": "npm run build:demo", | ||
"deploy": "gh-pages -d demo-dist --dotfiles" | ||
@@ -64,0 +64,0 @@ }, |
@@ -12,2 +12,7 @@ "use strict"; | ||
function useEvent(handler) { | ||
if (typeof window === 'undefined') { | ||
// useLayoutEffect doesn't work on the server side, don't bother | ||
// trying to make callback functions stable | ||
return handler; | ||
} | ||
var handlerRef = React.useRef(null); | ||
@@ -14,0 +19,0 @@ React.useLayoutEffect(function () { |
Sorry, the diff of this file is not supported yet
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
99245
1747