Tag manager not working for outer element

Hi ? the Matomo tag manager triggers not get fired for the outer elements. It just get fired for inner most elements. Code example is given below.

<a id="a" href="abc.com">
<img id="b" src="some-source">

In tag manager, in trigger when ClickID equals to b, the triggers get fired on using any click event
But not fire when ClickID is a.

Can you tell exactly which trigger you are using and exact configuration? Make sure you don’t have any click listeners added to B with some custom code. Are you using the All Links Click trigger? If not, I recommend you give it a try