Mobs (Noticed at Villager), when they fit right against the bamboo, get stuck in it and start jumping. Sorry for my bad english, I hope you will understand me.
(Bamboo is more than 2 blocks)
They will stop jumping only when you break this bamboo.
Related issues
Comments

Duplicate of MC-96319 - please use the search engine before reporting a bug.