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: Selected item is not getting highlighted when visited again unlike Dropdown component #7330

Closed
akshayaqburst opened this issue Oct 11, 2024 · 0 comments · Fixed by #7331
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@akshayaqburst
Copy link
Contributor

Describe the bug

AutoComplete: Selected item is not getting highlighted when visited again unlike Dropdown component.

When we check dropdown component, the selected option gets highlighted in blue color as shown in the screenshot.
image

Similarly when we check Autocomplete dropdown - https://primereact.org/autocomplete/#dropdown - It does not highlight the selected value
image

Reproducer

No response

System Information

npx: installed 1 in 0.852s

  System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
    Memory: 293.16 MB / 7.47 GB
    Container: Yes
    Shell: 5.0.17 - /bin/bash
  Binaries:
    Node: 14.21.3 - ~/.nvm/versions/node/v14.21.3/bin/node
    Yarn: 1.22.22 - ~/.nvm/versions/node/v14.21.3/bin/yarn
    npm: 6.14.18 - ~/.nvm/versions/node/v14.21.3/bin/npm
  npmPackages:
    react: 18.3.1 => 18.3.1

Steps to reproduce the behavior

  1. Go to https://primereact.org/autocomplete/#dropdown.
  2. Select an option from dropdown.
  3. Reopen the options list again from dropdown.
  4. The previously selected option is not highlighted.

Expected behavior

The previously selected option should highlight similar to dropdown component.

@akshayaqburst akshayaqburst added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Oct 11, 2024
akshayaqburst pushed a commit to qburst/primereact_qb_37 that referenced this issue Oct 11, 2024
…lighted when visited again unlike Dropdown component
@melloware melloware added this to the 10.8.5 milestone Oct 11, 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 Oct 11, 2024
akshayaqburst pushed a commit to qburst/primereact_qb_37 that referenced this issue Oct 11, 2024
…lighted when visited again unlike Dropdown component
akshayaqburst pushed a commit to qburst/primereact_qb_37 that referenced this issue Oct 14, 2024
…lighted when visited again unlike Dropdown component
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
2 participants