Spells continue to be cast after enemies are dead

Is this intentional? I don’t think it’s very useful, personally (though admittedly I’m not very far through anything yet!) And it takes up extra time at the end of battle. Also, it’s kinda strange when enemies cast things after they’re dead. Could that be changed?