primefaces / primefaces/primereact

AutoComplete: Resetting value doesn't work

Open
#6,044 4 comments 0 reactions 2 assignees View on GitHub

Nobody has claimed this yet.

Type: Bug
Dominant language
CSS
Stars
8.3k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.