Commit f9efc691 authored by Robert Sköld's avatar Robert Sköld Committed by Tim Neutkens

Added <Link scroll> PropType (#3003)

This should avoid the angry console warnings when trying to override the default scroll behavior using `<Link scroll={false}>`
parent ddd30787
...@@ -21,6 +21,7 @@ export default class Link extends Component { ...@@ -21,6 +21,7 @@ export default class Link extends Component {
replace: PropTypes.bool, replace: PropTypes.bool,
shallow: PropTypes.bool, shallow: PropTypes.bool,
passHref: PropTypes.bool, passHref: PropTypes.bool,
scroll: PropTypes.bool,
children: PropTypes.oneOfType([ children: PropTypes.oneOfType([
PropTypes.element, PropTypes.element,
(props, propName) => { (props, propName) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment