diff --git a/ComponentLibrary1/ComponentLibrary1.csproj b/ComponentLibrary1/ComponentLibrary1.csproj index 5a87b6b..8d6e7ea 100644 --- a/ComponentLibrary1/ComponentLibrary1.csproj +++ b/ComponentLibrary1/ComponentLibrary1.csproj @@ -6,6 +6,7 @@ true enable True + $(VersionPrefix)1.0.1 diff --git a/ComponentLibrary1/limited_text/LimitedText.cs b/ComponentLibrary1/limited_text/LimitedText.cs index 0fd20ab..ab95d72 100644 --- a/ComponentLibrary1/limited_text/LimitedText.cs +++ b/ComponentLibrary1/limited_text/LimitedText.cs @@ -87,10 +87,11 @@ namespace ComponentLibrary1 { return; } - if (value.Length >= Min && value.Length <= Max) + if (value.Length < Min || value.Length > Max) { return; } + textBox.Text = value; } }