Failed prop type: Invalid prop appendTo
of type string
supplied to DropdownPanel
, expected object
.
#2258
Labels
Type: Bug
Issue contains a defect related to a specific component.
Milestone
[x] bug report
React version:
16.13.1
PrimeReact version:
6.5.1
In our automated tests, seems there is some async issue when we migrated to new version of PrimeReact:
Failed prop type: Invalid prop
appendTo
of typestring
supplied toDropdownPanel
, expectedobject
.It is not reproducable when application is opened in browser.
This is pseudo code of the failing code:
Seems like this is what causes the issue:
It is NOT transforming 'self' to a DOM node, when passed to portal in DropdownPanel
So probably instance of : DomHandler.alignOverlay(this.overlayRef.current, this.input.parentElement, this.props.appendTo || PrimeReact.appendTo); must be passed to DropdownPanel component
Would be nice if you can check
The text was updated successfully, but these errors were encountered: