<Input />: more robust logic when calling stopPropagation()