When opening any form of UI including the inventory, toggled sprinting and sneaking is automatically toggled, making gameplay extremely annoying and dangerous if you’re trying to bridge.
Linked issues
Comments 3
But if you are asking to unpatch this bug, that's not the right place, you can make a suggestion on the official Minecraft Feedback website (https://feedback.minecraft.net/hc/en-us)
Duplicate of MC-301281 which is functioning as intended.
That was a bug they has been patched in 1.21.6 I recall