From 55b8e860c4d38c7030bf839b362089bcd8f133b2 Mon Sep 17 00:00:00 2001 From: Harrison Hough Date: Tue, 19 Dec 2023 10:49:44 +0200 Subject: [PATCH] fix: added extra condition to enable manual editing --- Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs b/Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs index f31135f2..2eea2251 100644 --- a/Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs +++ b/Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs @@ -68,7 +68,10 @@ private EventCallback> SubdomainChanged(VisualElement errorI errorIcon.visible = !IsValidSubdomain(); if (changeEvent.previousValue == partnerSubdomain) return; subdomainField.SetValueWithoutNotify(partnerSubdomain); - subdomainField.Focus(); // forces text to resize, making new subdomain value visible + if (changeEvent.newValue != partnerSubdomain) + { + subdomainField.Focus(); // forces text to resize, making new subdomain value visible + } OnSubdomainChanged?.Invoke(partnerSubdomain); }; }