1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Added <Link scroll> PropType (#3003)

This should avoid the angry console warnings when trying to override the default scroll behavior using `<Link scroll={false}>`
This commit is contained in:
Robert Sköld 2017-09-27 15:31:38 +02:00 committed by Tim Neutkens
parent ddd30787ef
commit f9efc69137

View file

@ -21,6 +21,7 @@ export default class Link extends Component {
replace: PropTypes.bool,
shallow: PropTypes.bool,
passHref: PropTypes.bool,
scroll: PropTypes.bool,
children: PropTypes.oneOfType([
PropTypes.element,
(props, propName) => {