Stop propagation of click event on text box to the parent

I’d like to be able to have an element that’s attached to a box (so the box resizes as the element changes, for example) and when said element is clicked, the click event is not also captured for the box the element is attached to.

This is related to a discussion question found here .

For example, I have a container box with a background and a text box with a label. Clicking the container box redirects the user to another page with different content. Clicking the text box keeps the user on the same page and changes an aspect of that page.

The current behavior is that clicking the text box will change an aspect of that page but then also performs the redirect of the container box click. I’d like to see an option for blocking the parent’s click action (like, for example, event.stopPropogation()). Thanks so much!