Windows 10 Java edition
Put the summary of the bug you're having here
What I expected to happen was...:
I closed a door in myself while crouching and released the shift key, I expected my perspective to stay crouching and it did. however...
What actually happened was...:
Going into third person perspective shows that the player is standing.
Steps to Reproduce:
1. Place a door, crouch.
2. Close the door so that the hitbox is inside your player hitbox.
3. release the crouch key, see that you still feel like you're crouching, and toggle perspective to see your player standing up. walking is even normal pace, the camera is just lowered while inside the door.