We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41bb28c commit 50138ccCopy full SHA for 50138cc
src/cascadia/TerminalControl/TermControl.cpp
@@ -1051,7 +1051,7 @@ namespace winrt::Microsoft::Terminal::Control::implementation
1051
// MSFT 33353327: We're purposefully not using _initializedTerminal to ensure we're fully initialized.
1052
// Doing so makes us return nullptr when XAML requests an automation peer.
1053
// Instead, we need to give XAML an automation peer, then fix it later.
1054
- if (!_IsClosing())
+ if (!_IsClosing() & !_detached)
1055
{
1056
// create a custom automation peer with this code pattern:
1057
// (https://docs.microsoft.com/en-us/windows/uwp/design/accessibility/custom-automation-peers)
0 commit comments