ui5-webcomponents-react icon indicating copy to clipboard operation
ui5-webcomponents-react copied to clipboard

Toolbar: TypeError - Button wrapped in React fragment causes app to crash.

Open C3ntraX opened this issue 1 year ago • 0 comments

Describe the bug Render a button within a toolbar. The button itself is wrapped inside a React Fragment, then the app will crash witht he errormessage:

TypeError: child.props.children.filter is not a function

Isolated Example https://codesandbox.io/s/zen-haslett-qkhhnm?file=/src/App.js

To Reproduce Steps to reproduce the behavior:

  1. Go to Sandbox
  2. Click on the Button
  3. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image

UI5 Web Components for React Information @ui5/webcomponents version: @ui5/webcomponents-react version: Operating System: Browser:

Additional context Add any other context about the problem here.

C3ntraX avatar Oct 19 '22 11:10 C3ntraX