When in crouch/sneak and you open your inventory it takes you out of crouch/sneak mode, iv fallen loads of times
Linked issues
Comments 2

Thank you for your report!
However, this issue has been closed as a Duplicate of MCPE-33209.
Please add a vote and any new information to the main ticket, which will be updated accordingly.
If you have not, you might like to make use of the search feature before making a new ticket, as it's likely that the issue has been reported already.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Feedback – 📖 Game Wiki
Not sure if this would count as a bug. I can't see any reason not to have the game stop sneaking when opening the inventory.