Add focusout event to container to close automatically on click outside or focusing  outside of element
Add focusout event to container to close automatically on click outside or focusing  outside of element

pixelandtonic/garnishjs