dotnet / dotnet/winforms

Cannot select correct item when there are consecutive null items in CheckedListBox and using Space Keyboard to check/uncheck

Open
#5,526 9 comments 0 reactions 1 assignee Claimed by @KevRitchie View on GitHub
:construction: work in progress help wanted
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

* .NET Core Version:
6.0.100-rc.1.21417.19

* Have you experienced this same bug with .NET Framework?:
Yes, this issue occurs from .Net Framework 3.5 to 4.8.

**More info:**

1. This issue also occurs in .Net 5.0&3.1&3.0.
2. This issue cannot occurs when are no consecutive null items.
![image](https://user-images.githubusercontent.com/54019172/130719092-5576c43b-2165-4136-931b-9bf1ef3f59e6.png)

**Problem description:**
Cannot select correct item when using Space keyboard to check/uncheck null item.
![Actual](https://user-images.githubusercontent.com/54019172/130718617-cf5a5532-d846-4280-a198-e4dc69ee6df7.gif)

**Expected behavior:**
Correct item should be selected when using Space keyboard to check/uncheck null item.
![Expected](https://user-images.githubusercontent.com/54019172/130718625-00ef0418-34df-41d9-9649-c28cd47d85fa.gif)
**Minimal repro:**
1. Extract the attachment project [CheckedListBoxNullItem.zip](https://github.com/dotnet/winforms/files/7043262/CheckedListBoxNullItem.zip)
2. Build and run
3. Hit Space keyboard on null item

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.