feat: remove item template dependency

This commit is contained in:
rabbitism
2023-06-29 03:28:04 +08:00
parent c878e45047
commit 69e2ce9980
2 changed files with 4 additions and 4 deletions

View File

@@ -139,7 +139,7 @@ public class TagInput: TemplatedControl
public void Close(object o)
{
if (o is ClosableTag t)
if (o is Control t)
{
var presenter = t.Parent as ContentPresenter;
if (presenter != null)