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:
parent
ddd30787ef
commit
f9efc69137
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue