react-router-hash-link
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -84,3 +84,3 @@ 'use strict'; | ||
scrollFunction = props.scroll || function (el) { | ||
return el.scrollIntoView(props.smooth ? { behavior: 'smooth' } : undefined); | ||
return props.smooth ? el.scrollIntoView({ behavior: "smooth" }) : el.scrollIntoView(); | ||
}; | ||
@@ -87,0 +87,0 @@ hashLinkScroll(); |
{ | ||
"name": "react-router-hash-link", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "Hash link scroll functionality for React Router v4", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -68,3 +68,5 @@ import React from 'react'; | ||
(el => | ||
el.scrollIntoView(props.smooth ? { behavior: 'smooth' } : undefined)); | ||
props.smooth | ||
? el.scrollIntoView({ behavior: "smooth" }) | ||
: el.scrollIntoView()); | ||
hashLinkScroll(); | ||
@@ -71,0 +73,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
10964
183