I recently started a new survival world. When I tried to obtain villagers for trading, they instantly headed back to their village as soon as I destroyed the boat or minecart.
Even when I put them inside of closed off rooms, they pushed against the wall instead of getting employed or sleeping.
Thank you for your report!
We're tracking this issue in MC-186314, so this ticket is being resolved and linked as a duplicate.
That ticket has already been resolved as Fixed. The fix will arrive in the next version or is already included in the latest development version of the game, you can check the Fix Version/s field in that ticket to learn more.
If you haven't already, you might like to make use of the search feature in the future to see if the issue has already been reported.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki