devtools-splitter
Advanced tools
Comparing version
{ | ||
"name": "devtools-splitter", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "DevTools Splitter", | ||
@@ -14,3 +14,2 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@kadira/storybook": "^2.35.3", | ||
"react": "^15.6.2", | ||
@@ -17,0 +16,0 @@ "react-dom": "^15.6.2" |
@@ -39,2 +39,8 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
ev.preventDefault(); | ||
// When the target is outside of the document, its tagName is undefined | ||
if (!ev.target.tagName) { | ||
return | ||
} | ||
// We pass the whole event because we don't know which properties | ||
@@ -41,0 +47,0 @@ // the callee needs. |
@@ -85,5 +85,5 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
if (this.props.initialSize !== nextProps.initialSize | ||
|| this.props.initialWidth !== nextProps.initialWidth | ||
|| this.props.initialWidth !== nextProps.initialWidth | ||
|| this.props.initialHeight !== nextProps.initialHeight) { | ||
this.setState({ | ||
this.setState({ | ||
width: parseInt(nextProps.initialWidth || nextProps.initialSize, 10), | ||
@@ -111,2 +111,3 @@ height: parseInt(nextProps.initialHeight || nextProps.initialSize, 10), | ||
splitBox.classList.add("dragging"); | ||
document.dispatchEvent(new CustomEvent("drag:start")); | ||
@@ -124,2 +125,3 @@ this.setState({ | ||
splitBox.classList.remove("dragging"); | ||
document.dispatchEvent(new CustomEvent("drag:end")); | ||
@@ -126,0 +128,0 @@ if (this.props.onResizeEnd) { |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2
-33.33%169433
-91.34%9
-52.63%375
-94.84%