From 89da7f635b860a735d786b5f09b327c28dff4aeb Mon Sep 17 00:00:00 2001 From: NikolaBorislavovHristov Date: Tue, 20 Nov 2018 07:24:06 +0200 Subject: [PATCH] forward all props to Popup.Label children --- src/common/Popup/Label.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/Popup/Label.js b/src/common/Popup/Label.js index 43ce357dd..55d6feca9 100644 --- a/src/common/Popup/Label.js +++ b/src/common/Popup/Label.js @@ -1,7 +1,7 @@ import React from 'react'; -const Label = React.forwardRef(({ children, onClick }, ref) => { - return React.cloneElement(React.Children.only(children), { ref, onClick }); +const Label = React.forwardRef(({ children, ...props }, ref) => { + return React.cloneElement(React.Children.only(children), { ref, ...props }); }); export default Label;