From de53cfbfa0fcee324c3e87f670788b1ac109a3dc Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Mon, 28 Jan 2019 13:03:32 +0200 Subject: [PATCH] Button forwarded ref fixed --- src/common/Button/Button.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/Button/Button.js b/src/common/Button/Button.js index c51cb583f..e33803e07 100644 --- a/src/common/Button/Button.js +++ b/src/common/Button/Button.js @@ -42,10 +42,14 @@ Button.defaultProps = { stopPropagation: true }; +const ButtonWithFocusable = withFocusable(Button); + +ButtonWithFocusable.displayName = 'ButtonWithFocusable'; + const ButtonWithForwardedRef = React.forwardRef((props, ref) => ( -