Change your second chunk of code to:
$('body').on('click', '.select-list li', function(e) {
e.stopPropagation();
$(this).toggleClass('selected');
});
When you click the list item, the click event is bubbling up the DOM to the .config div and triggering the click event on it, causing the toggleClass to occur again.