primereact icon indicating copy to clipboard operation
primereact copied to clipboard

AutoComplete: selectedItemTemplate displays [Object object]

Open xAl3xFx opened this issue 1 month ago • 0 comments

Describe the bug

Having AutoComplete component with selectedItemTemplate which returns React.Node the displayed value is [Object object]

Reproducer

https://stackblitz.com/edit/k4e3ju?file=src%2FApp.jsx

PrimeReact version

10.6.5

React version

18.x

Language

TypeScript

Build / Runtime

Create React App (CRA)

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

xAl3xFx avatar May 16 '24 20:05 xAl3xFx