primefaces / primereact

The Most Complete React UI Component Library
https://primereact.org
MIT License
6.68k stars 1.01k forks source link

AutoComplete: Resetting value doesn't work #6044

Open Minitron5000 opened 7 months ago

Minitron5000 commented 7 months ago

Describe the bug

After resetting AutoComplete's value, input doesn't allow to select latest added value.

Reproducer

https://stackblitz.com/edit/5tsd5s

PrimeReact version

10.5.1

React version

18.x

Language

ALL

Build / Runtime

Vite

Browser(s)

No response

Steps to reproduce the behavior

  1. Select 'Austraila' in autocomplete input
  2. Press 'Reset' button
  3. Select 'Austraila' in autocomplete input Result: input is empty, unable to select same value after resetting

Expected behavior

Expected: should be able to select same value after resetting

melloware commented 7 months ago

Thanks for the reproducer!

ivaneliasoo commented 5 months ago

Hi I think this bug is back. tried to reproduce here https://stackblitz.com/edit/mpjbld-7qabtz it occurs even in the original reproduction sample of this issue. can we reopen this? or can we create a new one?

ivaneliasoo commented 4 months ago

@nitrogenous @melloware maybe I can help with this if you provide me more context