You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the issue?
=> We are using headlessUI Transition and Dialog for a Mobile Popover.
=> We are creating a (global) search state in the headless component, hence we passed in unmount={false} to keep the (search) state once the modal is closed again.
However, since we added the unmount flag, whenever we RELOAD the page, scrolling does not work until we opened the modal once. It then works perfectly fine. We searched many hours for a solution but cannot seem to find one. Any ideas? In particular, we are using the code provided by headlessUI Tailwind components to be found here: https://tailwindui.com/components/ecommerce/components/category-filters
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the issue?
=> We are using headlessUI Transition and Dialog for a Mobile Popover.
=> We are creating a (global) search state in the headless component, hence we passed in
unmount={false}
to keep the (search) state once the modal is closed again.However, since we added the unmount flag, whenever we RELOAD the page, scrolling does not work until we opened the modal once. It then works perfectly fine. We searched many hours for a solution but cannot seem to find one. Any ideas? In particular, we are using the code provided by headlessUI Tailwind components to be found here: https://tailwindui.com/components/ecommerce/components/category-filters
Stack is: React, TS, Tailwind, Algolia (Search)
That is some example code - it blocks scrolling on first render...
Beta Was this translation helpful? Give feedback.
All reactions