Close popover when the user hits escape and fix not calling callbacks on
escape press in modal dialog
Fixes broken selects when there is no content