Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-router-hash-link

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-router-hash-link - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

2

lib/index.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc