foundry-ui
                                
                                
                                
                                    foundry-ui copied to clipboard
                            
                            
                            
                        Dropdown | Doesn't blur input and close options container when window loses focus
Scenario is to
- Open a dropdown, then move focus from the browser window
 - The dropdown may or may not close
 - On return to the window, the dropdown may still be open, but without any focus within it
 - Because of this, the dropdown can't get an onBlur event, because it isn't focused
 - It will stay open until an onBlur event, which can only occur if the user tabs back to the input to focus it and then click away
 
AC
- Dropdown checks every render if it is open AND not focused
 - If it is open without focus, it calls the onBlur function so the user can be notified