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

[Bug]: TagPicker - Toggle behavior while adding a value that is already selected #33305

Open
2 tasks done
DanieleDiLucido opened this issue Nov 20, 2024 · 0 comments
Open
2 tasks done

Comments

@DanieleDiLucido
Copy link

Component

TagPicker

Package version

9.55.0

React version

18.2.0

Environment

System:
    OS: Linux 6.5 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD EPYC 7763 64-Core Processor
    Memory: 25.99 GB / 62.78 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  npmPackages:
    @fluentui/keyboard-keys: ^9.0.7 => 9.0.8 
    @fluentui/react-components: ^9.55.0 => 9.55.0 
    @fluentui/react-icons: ^2.0.175 => 2.0.263 
    @types/react: ^18.2.0 => 18.3.3 
    @types/react-dom: ^18.2.0 => 18.3.0 
    react: ^18.2.0 => 18.3.1 
    react-dom: ^18.2.0 => 18.3.1

Current Behavior

If I add a string that is already selected the TagPicker will remove the selected value.

Screen.Recording.2024-11-20.at.17.03.52.mov

Expected Behavior

The existing selected string should remain in the TagPicker with no duplicates.

Reproduction

https://stackblitz.com/edit/gcfab9-kb6aoz

Steps to reproduce

  1. Click on the input box
  2. Type "Test" in the input box
  3. Click "Add new option: Test"
  4. Type for the second time "Test" in the input box
  5. Click "Add new option: Test"

Are you reporting an Accessibility issue?

no

Suggested severity

High - No workaround

Products/sites affected

No response

Are you willing to submit a PR to fix?

no

Validations

  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • The provided reproduction is a minimal reproducible example of the bug.
@DanieleDiLucido DanieleDiLucido changed the title [Bug]: TagPicker - Toggle behaviour while adding a value that is already selected [Bug]: TagPicker - Toggle behavior while adding a value that is already selected Nov 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant