NuGet / Home

Repo for NuGet Client issues
Other
1.5k stars 252 forks source link

[Bug Bash] Pressing the page-down button on the keyboard when focusing on ‘Version’ drop-down box with Tab key makes the box empty #13605

Open v-luzh opened 4 months ago

v-luzh commented 4 months ago

NuGet Product Used

Visual Studio Package Management UI

Product Version

Dev\6.12.0.10

Worked before?

It is not a regression since it reproes on D16.11\34601.136 and D17.10\35027.167.

Impact

It bothers me. A fix would be nice

Repro Steps & Context

Repro Steps:

  1. Create a C# Console App (.NET Framework 4.8.1) project and open the project-level PM UI window.
  2. Select ‘nuget.org’ in the ‘package source’ drop-down list and go to ‘Browse’ tab.
  3. Select a package in the package list on the left and press Tab key multiple times until focusing on the ‘Version’ drop-down box in the right panel.
  4. Press the page-down button (ↆ) on the keyboard.

Expected Results:

The ‘Version’ drop-down box should not be empty, it should show the first version under the latest stable version in the list.

Actual Result:

The ‘Version’ drop-down box is empty as the screenshot below. image

Notes:

1.Repro rate: 100%. 2.It also reproes on SDK based project. 3.It also reproes in ‘Installed’/‘Updates’/’Consolidate’ tab (if there are some packages installed), and the solution-level PM UI.

Verbose Logs

No response

kartheekp-ms commented 4 months ago

I am able to reproduce the issue following the steps mentioned in the issue description. It also reproduces on 17.11 preview version.

image
jgonz120 commented 1 month ago

@v-luzh did you mean the down arrow key on the keyboard and not the page-down key?

I also wasn't able to reproduce this on the latest 17.12 preview with the up and down arrow keys or page-up page-down. I was able to reproduce it with the left and right arrow keys.

My current guess is that the dropdown is selecting the divider between the "Latest Stable" and the first version in the list, which is blank.

v-luzh commented 4 weeks ago

Hi @jgonz120, the down arrow key and the page-down key on my keyboard are the same key. I pressed the arrow-down button since I expected to see the next item in the drop-down list, but I got the empty instead.