I was using return false to prevent the click bubbling up to the parent div which also has a click handler which closes the checkbox container.