microsoft / microsoft/fluentui

[Bug]: Automatic scrolling problem with options in a dropdown.

Open
#30,583 4 comments 1 reaction 1 assignee View on GitHub

@khmakoto is already working on this.

Since Apr 29, 2024.

Fluent UI react (v8) Resolution: Soft Close
Dominant language
TypeScript
Stars
20.3k
Forks
2.9k
Avg merge
2d 9h
Merged PRs (30d)
46

Description

Library

React / v8 (@fluentui/react)

System Info
System:
    OS: Windows 11 10.0.22621
    CPU: (16) x64 AMD EPYC 9354 32-Core Processor
    Memory: 8.28 GB / 26.00 GB
Browsers:
    Edge: Chromium (121.0.2277.128)
    Internet Explorer: 11.0.22621.1
Are you reporting Accessibility issue?

no

Reproduction

https://codepen.io/marchers-amadeus/pen/ExMJOOa

Bug Description

Actual Behavior

I am using @fluentui/react v8 to develop my website. When using a dropdown, I have limited the maximum height of dropdownItems due to having a large number of options. However, when I scroll down to the bottom using the scrollbar, as I hover my mouse, the dropdown items automatically scroll, making it difficult for me to select the desired option.

Expected Behavior

I would like the dropdown behavior to be the same as when there is no height restriction. Even when the scroll position is at the bottom, I don't want my mouse hover to affect the scrollbar's position.

Logs

No response

Requested priority

Normal

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.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.