While I was playing the new Pre-release 2 version I noticed that if I exit a boat while holding a non tool item my hot-bar would be locked and all items in it unusable until I re-logged I tested this several times to make sure was the cause of the issue.
Linked issues
duplicates
Comments

Thank you for your report!
However, we are already tracking this issue, and this report is a Duplicate of MC-186085.
Please use the search function in the future to prevent duplicate reports.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – ✍️ Feedback and Suggestions – 📖 Game Wiki