clear text after adding tag
MODIFY
WalletWasabi.Fluent/Behaviors/TagBoxAutoCompleteBoxBehavior.cs
WalletWasabi.Fluent/Behaviors/TagBoxAutoCompleteBoxBehavior.cs
@@ -54,7 +54,6 @@ namespace WalletWasabi.Fluent.Behaviors
if (obj.Length > 1 && !string.IsNullOrEmpty(obj.Trim()) && obj.EndsWith(' '))
{
EnterKeyOrSpacePressedAction?.Invoke();
- Dispatcher.UIThread.InvokeAsync(() => { AssociatedObject.Text = ""; });
}
}
@@ -67,7 +66,6 @@ namespace WalletWasabi.Fluent.Behaviors
else if (e.Key == Key.Enter && !string.IsNullOrEmpty(AssociatedObject?.Text.Trim() ?? ""))
{
EnterKeyOrSpacePressedAction?.Invoke();
- Dispatcher.UIThread.InvokeAsync(() => { AssociatedObject.Text = ""; });
}
}

MODIFY
WalletWasabi.Fluent/ViewModels/TagsBox/TagInputViewModel.cs
WalletWasabi.Fluent/ViewModels/TagsBox/TagInputViewModel.cs
@@ -35,6 +35,7 @@ namespace WalletWasabi.Fluent.ViewModels.TagsBox
private void OnEnterKeyOrSpacePressedAction()
{
_parent.AddTag(InputText.Trim());
+ InputText = string.Empty;
}
public string InputText

clear text after adding tag