From 452be831e2a4cafedbabfaba53e5ca2d4534566b Mon Sep 17 00:00:00 2001 From: Yuriy Kochetov Date: Sat, 10 Jun 2017 20:54:39 +0700 Subject: [PATCH] feat: support onMouseOver event handler in links --- modules/BaseLink.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/BaseLink.js b/modules/BaseLink.js index 1ad44af..811262d 100644 --- a/modules/BaseLink.js +++ b/modules/BaseLink.js @@ -53,7 +53,8 @@ class BaseLink extends Component { className, activeClassName, children, - title + title, + onMouseOver, } = this.props; const active = this.isActive(); @@ -67,6 +68,7 @@ class BaseLink extends Component { href, className: linkclassName, onClick: this.clickHandler, + onMouseOver, title }, children @@ -84,7 +86,8 @@ BaseLink.propTypes = { routeOptions: PropTypes.object, activeClassName: PropTypes.string, activeStrict: PropTypes.bool, - onClick: PropTypes.func + onClick: PropTypes.func, + onMouseOver: PropTypes.func }; BaseLink.defaultProps = {