iTwin / iTwinUI-react

A react component library for iTwinUI.
https://github.com/iTwin/iTwinUI
Other
83 stars 23 forks source link

Getting error (React.cloneElement(...): The argument must be a React element, but you passed undefined.) in Combobox when options changes #377

Closed klopez213 closed 2 years ago

klopez213 commented 2 years ago

Describe the bug (actual behavior)

I'm getting this error (React.cloneElement(...): The argument must be a React element, but you passed undefined.) in my combobox when the options changes. The use case is I have a LabeledSelect and a ComboBox. Depending on the selection from the LabeledSelect, the ComboBox options changes.

Expected behavior

ComboBox options should change.

Reproduction

Please see: https://codesandbox.io/s/combobox-h4f9u

Steps to reproduce
  1. Select a skill from the dropdown.

Additional information

mayank99 commented 2 years ago

This fix was just released in iTwinUI-react v1.22.0 🎉