Use mousedown instead of click to select dropdown items, because it happens before the blur event (which would otherwise hide the dropdown list).