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

fix(core): singleSelect - search filter not working well due to duplicate key issue. #733

Merged

Conversation

Bhusnar5044
Copy link
Contributor

affects: @medly-components/core

ISSUES CLOSED: #732

PR Checklist

Description

singleSelect - search filter not showing the filtered options, If there is any duplicate option available with a different value, the search not showing those options.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes and API changes)
  • Build changes
  • CI changes
  • Document content changes
  • Performance improvement
  • Add missing tests
  • Others (please describe)

Fixes #732

What is the current behaviour?

Search not filtering the options if it contains duplicate label option.

What is the new behaviour?

Search shows the filtered options even if there are any duplicate options with the same label.

Does this PR introduce a breaking change?

  • Yes
  • No

Checklist

  • My code follows the style guidelines of this project

  • I have performed a self-review of my own code

  • I have commented my code, particularly in hard-to-understand areas

  • I have made corresponding changes to the documentation

  • My changes generate no new warnings

  • I have added tests that prove my fix is effective or that my feature works

  • New and existing unit tests pass locally with my changes

  • Any dependent changes have been merged and published in downstream modules

…cate key issue.

affects: @medly-components/core

ISSUES CLOSED: medly#732
@nx-cloud
Copy link

nx-cloud bot commented Jun 26, 2023

☁️ Nx Cloud Report

CI is running/has finished running commands for commit 91c6005. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 2 targets

Sent with 💌 from NxCloud.

@gmukul01
Copy link
Collaborator

gmukul01 commented Jul 1, 2023

@Bhusnar5044 Values should always be unique hence we can remove adding the index as key. This should also remove the sonar error.

@Bhusnar5044
Copy link
Contributor Author

@Bhusnar5044 Values should always be unique hence we can remove adding the index as key. This should also remove the sonar error.

done 👍

@gmukul01 gmukul01 enabled auto-merge July 5, 2023 06:28
@gmukul01 gmukul01 disabled auto-merge July 5, 2023 16:46
@sonarcloud
Copy link

sonarcloud bot commented Jul 5, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@gmukul01 gmukul01 merged commit 3c37a28 into medly:master Jul 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: SingleSelect - search filter not working well due to duplicate key issue.
2 participants