Skip to content

Commit

Permalink
fix: added extra condition to enable manual editing
Browse files Browse the repository at this point in the history
  • Loading branch information
HarrisonHough committed Dec 19, 2023
1 parent 0e34dde commit 55b8e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Editor/UI/EditorWindows/Templates/SubdomainTemplate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,10 @@ private EventCallback<ChangeEvent<string>> 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);
};
}
Expand Down

0 comments on commit 55b8e86

Please sign in to comment.