Invisibility has been seriously nerfed in the prereleases.
When monsters become hostile to you, even when you are permanently invisible and they don't see through invis, they will try to hit you in the spot where you stand.
Apparently randomly but I personally think invisibility has been totally screwed up. Human player can never follow invisible monsters and hit them as reliably as monsters vs PC.
So yes, this is intended behavior, even if (in my opinion) broken.
"Hell is empty and all the devils are here."