Bugfix: don't overwrite with new init
This commit is contained in:
@@ -17,12 +17,17 @@ namespace Swarmops.Frontend.Controls.Base
|
||||
protected void Page_Load (object sender, EventArgs e)
|
||||
{
|
||||
this.TextInput.Attributes["role"] = "note"; // disable Lastpass trying to autofill
|
||||
this.InterpretedDate.Value = DateTime.Today.ToString(CultureInfo.InvariantCulture); // initialize to valid value
|
||||
|
||||
if (this.Layout == LayoutDirection.Unknown)
|
||||
{
|
||||
this.Layout = LayoutDirection.Vertical;
|
||||
}
|
||||
|
||||
if (!Page.IsPostBack)
|
||||
{
|
||||
this.InterpretedDate.Value = DateTime.Today.ToString(CultureInfo.InvariantCulture);
|
||||
// initialize to valid value
|
||||
}
|
||||
}
|
||||
|
||||
public DateTime Value
|
||||
|
||||
Reference in New Issue
Block a user