Instant opening and closing happens when using a Controller with Menus/Containers
When using a controller, pressing buttons on containers (and other menus probably) will open the container and then releasing the button will select the button at the mouses location (if the mouse is positioned over a button).
Steps to reproduce:
1- Use a controller (I used an XBox One Controller)
2- Open any container
3- Move the mouse to the "Close" button and select it
4- Open any container by pushing and releasing the button like you normally would
5- The container should open and then close immediately