Is there a way to close a disclosure when the screen width reach a certain width? #2393
Unanswered
allenchuang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using the Disclosure component and the render props pattern along with tailwindcss to render the mobile nav menu
However, i noticed that if I open the mobile menu in a smaller width screen and then resize (expand) the window to a normal desktop width, the state of
open
remainstrue
and it causes issue with my styling since i depend on theopen
renderProp to decide on the styles applied.Is there any fix around this? i.e. trigger close() when window screen size >= X px?
Thanks in advance 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions