From 346c51abbd5e77a675b66ac3c75c29724a8856e5 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 7 Jul 2021 12:24:24 +0200 Subject: [PATCH] Init to valid value --- Site/Controls/v5/Base/DateTextBox.ascx.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Site/Controls/v5/Base/DateTextBox.ascx.cs b/Site/Controls/v5/Base/DateTextBox.ascx.cs index 0a7c4681..1716c34a 100644 --- a/Site/Controls/v5/Base/DateTextBox.ascx.cs +++ b/Site/Controls/v5/Base/DateTextBox.ascx.cs @@ -16,6 +16,7 @@ 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) {