I have also tried this in vanilla and the same is happening. Here is a clip of the same!
Also, don't just dismiss the concern if the version is a little modified as it is optifine only and no other heavy mods.
[media]I have tried everything, but it seems to be an issue with the game itself as even after removing and resource packs, the issue is there.
I am not sure why it did not attach the first or second time. But here we go again.
[media]This issue seems to have reappeared in the new update
[media]Sure, here is a video
[media]
I have never tinkered with the game rule and not sure about its status. However, I did see that I had a data pack which was for version 1.16. After deleting it, the issue seems to have resolved.
I will keep an eye out just in case and will share any findings here if the issue reappears.
Please consider this issue as resolved for now.
Thanks for your assistance!