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(wren-ui): Fix select models duplicated keys issue #551

Merged
merged 1 commit into from
Jul 24, 2024

Conversation

andreashimin
Copy link
Contributor

@andreashimin andreashimin commented Jul 24, 2024

Description

In #491 using onChange to handle select all & deselect all click,
the if condition didn't bypass select one click successfully (it happens when the selectedKeys already had 1 key), causing onSelect & onChange to update selectedKeys at the same time, so there are duplicated keys inside.

image

Copy link
Contributor

@fredalai fredalai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andreashimin andreashimin merged commit 895d3f8 into main Jul 24, 2024
10 checks passed
@andreashimin andreashimin deleted the fix/duplicate-keys branch July 24, 2024 07:57
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.

2 participants