ComboBox popupSettings.appendTo - propTypes bug?

1 Answer 107 Views
ComboBox Wrappers for React
Andrew
Top achievements
Rank 1
Andrew asked on 30 May 2022, 09:27 PM

In order to get a ComboBox to work inside a Bootstrap 5 Offcanvas, I attempted to set the appendTo ref per this thread.

It works correctly, but I'm seeing this warning in the browser console:

Warning: Failed prop type: Invalid prop `popupSettings.appendTo` of type `object` supplied to `ComboBox`, expected a single ReactElement.

The documentation says that appendTo accepts an HTMLElement, not a ReactElement.

Is this a bug with the propTypes provided for the ComboBoxWithoutContext class, or is there some other issue with my code that I'm not seeing?

Fiddle is available here.

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 31 May 2022, 07:41 AM

Hello Andrew,

Thank you for contacting us and for the detailed information.

We are aware of the issue in question and we have logged item for it in our public repository:

As you will notice, the fix is already merged and should be available in the next release. Meanwhile, you can try the workaround mentioned in the item, where the PopupPropsContext is used for setting the "appendTo".

Please excuse us for any inconvenience caused by this and if we can assist you with anything else, feel free to contact us again.

 

Regards,
Konstantin Dikov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
ComboBox Wrappers for React
Asked by
Andrew
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or