Replace p with div

Buttons can have divs for themselves, which will lead to an error
otherwise because a p must not contain divs.
This commit is contained in:
Rene Pfeuffer
2019-10-01 10:31:55 +02:00
parent e6d32a1468
commit e0c40c645a

View File

@@ -14,7 +14,7 @@ class ButtonGroup extends React.Component<Props> {
const childWrapper = [];
React.Children.forEach(children, child => {
if (child) {
childWrapper.push(<p className="control" key={childWrapper.length}>{child}</p>);
childWrapper.push(<div className="control" key={childWrapper.length}>{child}</div>);
}
});