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

Sidebar window resizing causes sidebar not to re-appear and no response from click events #1215

Closed
ptimson opened this issue May 25, 2022 · 1 comment · Fixed by tailwindlabs/headlessui#1500

Comments

@ptimson
Copy link

ptimson commented May 25, 2022

What component (if applicable)

Describe the bug
On smaller screen sizes max-width: 1023px when the sidebar is hidden, resizing the screen to min-width: 1024px and then back to max-width: 1023px causes an issue where it seems like the window no longer responds to click events.

It works on the component demo screen but does not work when copying the code into our project, so we wonder if the code has not been updated?

To Reproduce
Steps to reproduce the behaviour:

  1. Bootstrap a NextJS app with tailwindcss
  2. Copy and save component code to a new page src/pages/preview.jsx
  3. Visit the page and confirm UI same as component link above
  4. Resize window to max-width: 1023px to reveal hamburger menu
  5. Click on hamburger menu to reveal sidebar
  6. Resize window to min-width: 1024px to hide hamburger menu
  7. Resize window to max-width: 1023px to reveal hamburger menu
  8. Notice sidebar is hidden
  9. Notice other components in window not clickable
  10. Notice [7] and [8] does not occur in component demo page

Expected behaviour
Sidebar should remain visible after steps [4], [5], and [6]

Screenshots
Expected
expected
Actual
actual

Browser/Device (if applicable)

  • OS: Windows 10 and MacOS xx

  • Browser: Chrome

  • Version: 101.0.4951.67 (Official Build) (64-bit)

  • @headlessui/react: "^1.6.1"

Additional context
N/A

@ptimson ptimson changed the title Sidebar window resizing causes no response from click events Sidebar window resizing causes sidebar not to re-appear and no response from click events May 25, 2022
@RobinMalfait
Copy link

Hey! Thank you for your bug report!
Much appreciated! 🙏

This is an issue in Headless UI and we just released a fix in #1500. It should already be available in the latest 1.6.3 release.

Sorry for the inconvenience

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants