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

Dragging scrollbar on FormTokenField suggestions list does not work #50514

Closed
amiut opened this issue May 10, 2023 · 2 comments · Fixed by #56426
Closed

Dragging scrollbar on FormTokenField suggestions list does not work #50514

amiut opened this issue May 10, 2023 · 2 comments · Fixed by #56426
Labels
[Feature] UI Components Impacts or related to the UI component system [Package] Components /packages/components [Type] Bug An existing feature does not function as intended

Comments

@amiut
Copy link

amiut commented May 10, 2023

Description

When adding <FormTokenField /> component with __experimentalExpandOnFocus prop, and add enough number of suggestions that makes the list scrolled, while scrolling functionality works fine by mousewheel, It does not work when dragging the scrollbar or clicking the up/down scroll arrows (In microsoft Windows), the scrollbar doesn't move and if you already have scrolled with mouse wheel it will jump to the beginning of the list.

Also reproducible in StoryBook: https://wordpress.github.io/gutenberg/?path=/docs/components-formtokenfield--dropdown-selector

Step-by-step reproduction instructions

  1. Insert a <FormTokenField /> with __experimentalExpandOnFocus enabled.
  2. Add enough number of suggestions so that the list gets scrolled.
  3. Click the input so the suggestions list gets expanded.
  4. Drag the scrollbar and/or if you are on Windows click the down/up arrows.

Screenshots, screen recording, code snippet

this behavior can be seen in this recorded screencast.

Screen.Recording.2023-05-10.at.3.57.57.PM.mov

However this will work fine If you type something in the search input and the list focus gets locked.

Screen.Recording.2023-05-10.at.4.03.00.PM.mov

Environment info

  • Wordpress 6.2
  • Tested on Firefox Developer edition 114, Microsoft Edge 110, Chrome Canary 115
  • Desktop with OSx 13.2.1 + multiple other browser / operating systems on BrowserStack.com

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@andrewserong andrewserong added [Feature] UI Components Impacts or related to the UI component system [Package] Components /packages/components [Type] Bug An existing feature does not function as intended labels May 12, 2023
@bvlgn
Copy link

bvlgn commented Aug 23, 2023

I stumbled on the same problem (WP 6.3).
I hope someone will be able to find the cause and fix this.

@bvlgn
Copy link

bvlgn commented Aug 24, 2023

You can test this bug here:

https://wordpress.github.io/gutenberg/?path=/story/components-formtokenfield--dropdown-selector

Please notice that you won't be able to drag the scrollbar due to this bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] UI Components Impacts or related to the UI component system [Package] Components /packages/components [Type] Bug An existing feature does not function as intended
Projects
None yet
3 participants