Can't close custom panel

Hi All I have created an in game panel but when closing it stays on the
screen. I have obviously missed something simple! Is there anyone who can spot
my mistake?


This is the html

                ![](img/Beechcraft_logo_white.png)
                

# BONANZA G36 IMPROVEMENT PROJECT


              


            


            


              


                Connected Flight Deck __


            


            


              


                AFM Revision: 619D6B96  

                Supplement: 619D6B96-S1  

              


              


                Registration: placeholder  

                Aircraft: placeholder  

              


              


                


                  ![](img/Bonanza_360_05.png)
                  


                    Bonanza G36 / Garmin NXi
                  


                


              


              


                


                  


                    
                    Enable / Disable State Saving for this aircraft
                  


                  


                    
                    Reset state on next load
                  


                  


                    


                      


                        __Changes above will only be reflected on next flight load


                    


                  


                


                


                  


                    **Live Aircraft Data**
                  


                  


                    
                      Engine Hours
                    

                        
                      placeholder
                    

                    
                      Engine
                    

                        
                      Continental IO-550-B
                    

                    
                      Hours until next service
                    

                        
                      placeholder
                    

                    
                      Battery 1 Voltage
                    

                        
                      placeholder
                    

                    
                      Battery 2 Voltage
                    

                        
                      placeholder

I’m trying to close the panel with

this.ingameUi = this.querySelector('ingame-ui');
    this.ingameUi.addEventListener("panelInactive", (e) => {
      console.log('panelInactive');
      this.ingameUi.closePanel();
    });

Sorted it! I was using Bootstrap to style to contents, when using Bootstrap
you will need to download the unminified version and remove the body styling
otherwise this interferes with the window.