primereact
primereact copied to clipboard
OverlayPanel: appendTo="body" throws exception
TypeError: Argument 1 of Node.appendChild is not an object. <OverlayPanel className="ui-g-8" ref={el => this.fieldPicker = el} showCloseIcon={true} dismissable={true} appendTo="body">
http://prntscr.com/his990
Better to use portals here, I'll check this now.
Fixed by using portals, we're migrating all appendTos to portals and works great. With 1.3.0, usage should be;
<OverlayPanel appendTo={document.body}></OverlayPanel>
appendTo={document.body} -- Can't thank you enough for this answer. Worked perfectly!