Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoComplete: Resetting value doesn't work #6044

Open
Minitron5000 opened this issue Feb 26, 2024 · 3 comments · Fixed by #6045
Open

AutoComplete: Resetting value doesn't work #6044

Minitron5000 opened this issue Feb 26, 2024 · 3 comments · Fixed by #6045
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@Minitron5000
Copy link

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

@Minitron5000 Minitron5000 added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 26, 2024
@melloware melloware added Type: Bug Issue contains a defect related to a specific component. and removed Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible labels Feb 26, 2024
melloware added a commit to melloware/primereact that referenced this issue Feb 26, 2024
@melloware melloware self-assigned this Feb 26, 2024
@melloware melloware added this to the 10.5.2 milestone Feb 26, 2024
@melloware
Copy link
Member

Thanks for the reproducer!

nitrogenous added a commit that referenced this issue Mar 18, 2024
Fix #6044: Autocomplete reset selectedItem if value cleared
@ivaneliasoo
Copy link

ivaneliasoo commented Apr 2, 2024

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?

@nitrogenous nitrogenous reopened this Apr 3, 2024
@github-actions github-actions bot added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 3, 2024
@melloware melloware removed the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Apr 3, 2024
@melloware melloware modified the milestones: 10.5.2, 10.6.4 Apr 9, 2024
@nitrogenous nitrogenous modified the milestones: 10.6.4, Future Apr 30, 2024
@ivaneliasoo
Copy link

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

@nitrogenous nitrogenous removed their assignment Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Issue contains a defect related to a specific component.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants