Whenever I leave my village in order to do some exploration or building, and I don't trade or breed my villagers for about 2-3 consecutive in game days, they suddenly disappear. I've tried blocking them in houses and trapping in 2x1 pits but that doesn't work either. The entire area is mob proof and there are no rivers, caves or cliffs. It happens in any world I play. Please fix this, I've been losing important librarians and emerald fletchers.
Related issues
Comments

Thank you for your report!
We're tracking this issue in MCPE-21416, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki