react-diff-view
Advanced tools
Comparing version 1.6.1 to 1.6.2
{ | ||
"name": "react-diff-view", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "A git diff component to consume the git unified diff output.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -541,1 +541,5 @@ # react-diff-view | ||
- Optimize performance of column selection. | ||
### 1.6.2 | ||
- Fix an issue where click on hunk header can cause error because optimized selection doesn't handle clicks in non code cells. |
@@ -12,7 +12,7 @@ import {PureComponent, Children, cloneElement} from 'react'; | ||
const findClosest = (target, className) => { | ||
while (target && target.classList && !target.classList.contains(className)) { | ||
while (target && target !== document && !target.classList.contains(className)) { | ||
target = target.parentNode; // eslint-disable-line no-param-reassign | ||
} | ||
return target; | ||
return target === document ? null : target; | ||
}; | ||
@@ -19,0 +19,0 @@ |
Sorry, the diff of this file is too big to display
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
1171320
545