Only hide popout menu if clicking outside or buttons with a callback.