Created listener to close traits config when clicking outside of a question.