Zealot charge cancelled by enemy gunfire

Isn’t the purpose of the charge to close the distance on enemies? Why does it seem to get cancelled if I’m getting shot at?

:person_shrugging:

Can only assume it’s either a bug or otherwise unintentional.