I was trying to test MC-261760 and the villager instead of glitching out of bed just got stuck inside the open door and wouldn't move even when being attacked. When I tried to close the door the villager immediately opened it again causing it to stay stuck.
Video: https://www.youtube.com/watch?v=qerDvv3JAD0
This might be a clone of MC-141167.
Linked issues
Comments

Thank you for your report!
We're resolving and linking this ticket forward as a duplicate of MC-264433, as that ticket contains more detailed information and/or has already been triaged by Mojang.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support (Technical Issues) – 📧 Microsoft Support (Account Issues)
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki
-- I am a bot. This action was performed automatically! The ticket was resolved by one of our moderators, and I left this message to give more information to you.
Duplicates MC-181565