I assigned different click handlers to a parent node and one of its children, then found that interacting with the child also triggered the parent’s handler.
Cocos Creator events travel through capture and bubbling phases. During bubbling, an event dispatched from a child can continue upward through its ancestors.
For a UI layer that should stop pointer or touch input from reaching nodes behind it, add a BlockInputEvents component to the blocking node:
If the requirement is specifically to stop ancestor bubbling inside an event handler, use the event propagation controls supported by your Cocos Creator version. Choose between blocking hit-tested input and stopping propagation based on the hierarchy and intended UI behavior.