question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] Listbox cause unexpected scroll behavior when it is used with a `position: sticky` container

See original GitHub issue

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v1.6.1

What browser are you using?

Chrome: Version 101.0.4951.64 (Official Build) (arm64)

Reproduction URL https://codesandbox.io/s/headlessui-react-unexpected-scroll-behavior-9jvger?file=/src/App.js

Describe your issue Listbox cause unexpected scroll behavior when it is used with a position: sticky container

https://user-images.githubusercontent.com/15878786/167044067-8d613aa2-7ec7-4235-84e0-43facb944bd7.mov

https://www.npmjs.com/package/scroll-into-view-if-needed might be a good choice to solve this problem.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
promer94commented, May 19, 2022
Screen Shot 2022-05-19 at 20 37 03
1reaction
RobinMalfaitcommented, May 18, 2022

Hmm I’m on basically the exact same versions as you are: image image

And I can’t reproduce it at all. Do you have any extensions installed that could cause an issue? Can you check in incognito mode or another browser by any chance? Do you have any special system wide settings enabled?

https://user-images.githubusercontent.com/1834413/169120701-494813c3-9d73-4287-9b02-a2360b5b599c.mov

Read more comments on GitHub >

github_iconTop Results From Across the Web

Scrolling bug when focusing element inside position sticky ...
I've created sticky scroll-spy navigation for the page, but there's weird behavior when user focus link or checkbox. This bug only occurs ...
Read more >
How to Fix Issues With CSS Position Sticky Not Working?
This happens because the sticky element is meant to stick/scroll within the height of a container.
Read more >
All Products v16.1 HF1 - Fixed bugs - 4D
ACI0096136, When setting the Horizontal Sizing option of a list box ... listbox, when scroll at one line by using command OBJECT SET...
Read more >
dL4Term Terminal Emulator 10.1.4 Maintenance Release
causes a list box to send the associated string whenever the user scrolls to the last item in the list box. An application...
Read more >
Enhancements and Resolved Issues - Evisions Help
Release Area Issue Number 6.9.1 Accessibility AR‑7645 6.9.1 AWV AR‑7632 6.9.1 AWV AR‑7633
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found