diff --git a/src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs b/src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs index cf5fcffa489..17f4c4c3941 100644 --- a/src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs +++ b/src/DynamoCoreWpf/Views/Core/AnnotationView.xaml.cs @@ -235,7 +235,10 @@ private void GroupTextBox_OnTextChanged(object sender, TextChangedEventArgs e) SetTextMaxWidth(); SetTextHeight(); - ViewModel.WorkspaceViewModel.HasUnsavedChanges = true; + if (GroupTextBox.ActualHeight > 0 && GroupTextBox.ActualWidth > 0) + { + ViewModel.WorkspaceViewModel.HasUnsavedChanges = true; + } } @@ -355,7 +358,10 @@ private void GroupDescriptionTextBox_TextChanged(object sender, TextChangedEvent if (ViewModel is null || !IsLoaded) return; SetTextHeight(); - ViewModel.WorkspaceViewModel.HasUnsavedChanges = true; + if (GroupDescriptionTextBox.ActualHeight > 0 && GroupDescriptionTextBox.ActualWidth > 0) + { + ViewModel.WorkspaceViewModel.HasUnsavedChanges = true; + } }