CloseButton Component will not work in next.js when imported from @headlessui/react #3651
              
                Unanswered
              
          
                  
                    
                      Elieserlaguerre
                    
                  
                
                  asked this question in
                Help
              
            Replies: 1 comment
-
| 
         Hey! Make sure that the  Can you share a minimal reproduction repo so we can take a look?  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    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.
Uh oh!
There was an error while loading. Please reload this page.
-
What package within Headless UI are you using?
I'm using the Disclosure from @headlessui/react
What version of that package are you using?
I'm using version: "^2.2.0"
What browser are you using?
Chrome
Reproduction URL
I don't know how to create/provide a reproduction URL.
Describe your issue
Describe the problem you're seeing, any important steps to reproduce, and what behavior you expect instead.
When I click on the CloseButton component, it does nothing except redirect the client to another page, which is what I want. However, it does not close the DisclosurePanel, which is what I want.
Beta Was this translation helpful? Give feedback.
All reactions