Currently, stunning an enemy keeps it from attacking you in melee, and keeps spitters and shocker-type enemies from using their ranged attacks. However, some other things are still possible. For example, the skeletal juggernaut can still use its slashing reach attack, the corrosive zombie can still use its ranged attack, and things with guns are still able to aim and shoot at you.
Is this supposed to happen?