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: forceSelection reset valid value on blur if suggestions are grouped #7163

Closed
manuel-bitcraft opened this issue Sep 12, 2024 · 1 comment · Fixed by #7164 · May be fixed by leoo1992/GeradorQRCode#95
Closed
Assignees
Labels
Type: Bug Issue contains a defect related to a specific component.
Milestone

Comments

@manuel-bitcraft
Copy link

Describe the bug

The autocomplete value reset with forceSelection when suggestions are grouped

Reproducer

https://stackblitz.com/edit/romxlz?file=src%2FApp.jsx

System Information

System:
    OS: Windows 11 10.0.22631
    CPU: (12) x64 13th Gen Intel(R) Core(TM) i7-1355U
    Memory: 34.94 GB / 63.64 GB
  Binaries:
    Node: 16.20.2 - C:\Program Files\nodejs\node.EXE
    npm: 8.19.4 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (128.0.2739.67)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    primereact: ^10.8.2 => 10.8.2 
    react: ^18 => 18.2.0 
    tailwindcss: ^3.3.0 => 3.4.1

Steps to reproduce the behavior

  1. Click the input
  2. Type 'a'
  3. Select a suggested option, ex 'Frankfurt'
  4. The 'Frankfurt' value is selected and it shows in the input field
  5. blur out of the input field
  6. Input field is cleared

Expected behavior

  1. Click the input
  2. Type 'a'
  3. Select a suggested option, ex 'Frankfurt'
  4. The 'Frankfurt' value is selected and it shows in the input field
  5. blur out of the input field
  6. Input field is NOT cleared
@manuel-bitcraft manuel-bitcraft added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Sep 12, 2024
Rekl0w added a commit to Rekl0w/primereact that referenced this issue Sep 12, 2024
@Rekl0w
Copy link
Contributor

Rekl0w commented Sep 12, 2024

PR submitted.

@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 Sep 12, 2024
@melloware melloware added this to the 10.8.3 milestone Sep 12, 2024
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
3 participants