A supported workaround is to force Windows to render only on the laptop display after undocking:
- Press Windows key + P.
- Select PC screen only.
This can help when the taskbar is still behaving as if another display is active after switching from multiple monitors.
Also verify the taskbar behavior settings:
- Right-click the taskbar and select Taskbar settings.
- Expand Taskbar behaviors.
- Confirm Automatically hide the taskbar is unchecked.
- If the device is a 2-in-1, turn off Optimize taskbar for touch interactions when this device is used as a tablet. This setting has been identified as a cause of the taskbar hiding unexpectedly.
If the taskbar still appears empty after disconnecting, toggling Automatically hide the taskbar off and on is a valid workaround based on the described behavior, but the context does not provide a permanent fix beyond the display-mode and taskbar-behavior checks above.
References: