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]: Menu.Items not forwarding ref

See original GitHub issue

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

1.4.1

What browser are you using?

Chrome

Reproduction repository

https://codesandbox.io/s/little-fog-bygcn

Describe your issue

As demonstrated in the codesandbox above, the ref prop is not being forwarded to the container element in Menu.Items.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:4
  • Comments:7

github_iconTop GitHub Comments

2reactions
jaredlosoncommented, Jan 28, 2022

Are refs forwarded to any of the components? Running into the with Tabs as well.

1reaction
brvnonascimentocommented, Jan 27, 2022

Same with Tab.List component

Read more comments on GitHub >

github_iconTop Results From Across the Web

React - sending down ref as a prop not working - Stack Overflow
Your example shows the same bug as mine. The menu list is opening below the first button and not the last one as...
Read more >
PySimpleGUI
PySimpleGUI User's Manual. Python GUI For Humans - Transforms tkinter, Qt, Remi, WxPython into portable people-friendly Pythonic interfaces. The Call Reference ...
Read more >
Troubleshoot—ArcGIS Online Help | Documentation
Listed below are issues you may encounter when working with the website and some recommended solutions.
Read more >
Action for top-level dropdown menu item not activated
Under vanilla GNOME, this works fine today. Under Unity, the toplevel menu action is not fired when the user clicks on the item....
Read more >
Bash Reference Manual - GNU.org
The following menu breaks the features up into categories, noting which ... If -T is not set, and the sourced file changes the...
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