Allow leading sign in number field so that negative numbers are supported
This commit is contained in:
@@ -75,8 +75,8 @@ namespace umbraco.editorControls
|
||||
set
|
||||
{
|
||||
int integer;
|
||||
|
||||
if (int.TryParse(value, NumberStyles.AllowThousands, CultureInfo.InvariantCulture, out integer))
|
||||
|
||||
if (int.TryParse(value, NumberStyles.AllowThousands | NumberStyles.AllowLeadingSign, CultureInfo.InvariantCulture, out integer))
|
||||
{
|
||||
base.Text = integer.ToString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user