How to reproduce
Spawn one chicken into water, let the fox attack it; now spawn a lot chickens in front of the fox, it will keep targetting the chicken it first attacked. However; there are closer targets to attack.
Spawn one chicken into water, let the fox attack it; now spawn a lot chickens in front of the fox, it will keep targetting the chicken it first attacked. However; there are closer targets to attack.
I think this is just how mob targeting works in the game, and not specific to the fox