adding stopPropagation

Prevent any direct parent to be triggered when clicking on the input.