react-scrollspy-pure
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -55,4 +55,2 @@ import React from 'react'; | ||
} | ||
console.log('navItemSelectorHandler(id)', navItemSelectorHandler(id), navItem, entry.intersectionRatio); | ||
if (entry.intersectionRatio > intersectionRatio) { | ||
@@ -85,3 +83,3 @@ navItem.classList.add(activeClassName); | ||
WrapperComponent: PropTypes.node, | ||
sectionElementName: PropTypes.node, | ||
sectionElementName: PropTypes.string, | ||
activeClassName: PropTypes.string, | ||
@@ -88,0 +86,0 @@ activeClassTo: PropTypes.oneOf(['self', 'parent']), |
@@ -59,4 +59,2 @@ 'use strict'; | ||
} | ||
console.log('navItemSelectorHandler(id)', navItemSelectorHandler(id), navItem, entry.intersectionRatio); | ||
if (entry.intersectionRatio > intersectionRatio) { | ||
@@ -89,3 +87,3 @@ navItem.classList.add(activeClassName); | ||
WrapperComponent: PropTypes.node, | ||
sectionElementName: PropTypes.node, | ||
sectionElementName: PropTypes.string, | ||
activeClassName: PropTypes.string, | ||
@@ -92,0 +90,0 @@ activeClassTo: PropTypes.oneOf(['self', 'parent']), |
{ | ||
"name": "react-scrollspy-pure", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A react component provides the scrollspy feature with Intersection Observer API", | ||
@@ -5,0 +5,0 @@ "author": "mingkin123", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
20837
162