forward all props to Popup.Label children

This commit is contained in:
NikolaBorislavovHristov 2018-11-20 07:24:06 +02:00
parent 90bb088be4
commit 89da7f635b

View file

@ -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;