From 5bca57fd4de31818e7e4e33101653bbc0a23e12c Mon Sep 17 00:00:00 2001 From: Jason Etcovitch Date: Sat, 11 Mar 2017 18:05:47 -0500 Subject: [PATCH] For #4707 Line 32 has to be `aria-current` instead of `ariaCurrent`, otherwise React will strip it out. --- packages/react-router-dom/modules/NavLink.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/react-router-dom/modules/NavLink.js b/packages/react-router-dom/modules/NavLink.js index 62659ec47e..a097966ea3 100644 --- a/packages/react-router-dom/modules/NavLink.js +++ b/packages/react-router-dom/modules/NavLink.js @@ -14,6 +14,7 @@ const NavLink = ({ activeStyle, style, isActive: getIsActive, + ariaCurrent, ...rest }) => ( ) @@ -43,11 +45,13 @@ NavLink.propTypes = { className: PropTypes.string, activeStyle: PropTypes.object, style: PropTypes.object, - isActive: PropTypes.func + isActive: PropTypes.func, + ariaCurrent: PropTypes.oneOf(['page', 'step', 'location', 'true']) } NavLink.defaultProps = { - activeClassName: 'active' + activeClassName: 'active', + ariaCurrent: 'true' } export default NavLink