I was expecting to go to sleep and nothing to show on my screen but the GUI stays on the screen along with the Leave Bed button.
How to see this bug
1.Place a bed in Survival Mode
2.When its night tap to go to sleep
3.At that moment yo will see the bug