primereact icon indicating copy to clipboard operation
primereact copied to clipboard

Incompatibility between AutoComplete's forceSelection and grouping

Open MajorPrime opened this issue 3 years ago • 1 comments

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request

Codesandbox Case (Bug Reports)

https://codesandbox.io/s/primereact-test-forked-6ql9s?file=/src/index.js

Current behavior No selection can be made

Expected behavior A selection can be made

Minimal reproduction of the problem with instructions A grouped AutoComplete with forceSelection enabled: https://codesandbox.io/s/primereact-test-forked-6ql9s?file=/src/index.js

  • React version: 16.8

  • PrimeReact version: 6.3.2

  • Browser: FF

MajorPrime avatar May 19 '21 18:05 MajorPrime

forceSelection doesn't work with objects in selectedValue/suggestions, even when the field is provided

Grouped and Multiple on the example below

https://codesandbox.io/s/gifted-kowalevski-24jic?file=/src/demo/AutoCompleteDemo.js

https://github.com/primefaces/primeng/issues/10250

AuthorProxy avatar May 26 '21 14:05 AuthorProxy

I think the issue is explained here: #3623

melloware avatar Nov 14 '22 21:11 melloware