You mean like this, right?
View attachment 15779
That's a bug/oversight that happens when you cancel the ending bit of the punching animation at a relatively specific time. Abram's Siphon Life can cancel it, which is how I presume it happens for you. Some items like Fleetfoot can also cancel it, so this can happen with every hero.