fix(ui-toolkit): don't pass input specific props to checkbox li

This commit is contained in:
Sérgio Ramos 2017-10-13 20:59:13 +01:00 committed by Sérgio Ramos
parent f055118c2a
commit 18f2ace3e9

View File

@ -23,9 +23,7 @@ const Ul = styled.ul`
padding: 0; padding: 0;
`; `;
const CheckboxItem = BaseInput(({ children, id, ...rest }) => ( const CheckboxItem = BaseInput(({ children }) => <Li>{children}</Li>);
<Li {...rest}>{children}</Li>
));
const Checkbox = Baseline( const Checkbox = Baseline(
BaseInput( BaseInput(