Browse Source

Preserve JSON deserialized properties from being trimmed away (#31951)

Fixes https://github.com/dotnet/aspnetcore/issues/31950
Pranav K 4 years ago
parent
commit
64519d26fd
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Components/Shared/src/WebEventData.cs

+ 2 - 0
src/Components/Shared/src/WebEventData.cs

@@ -79,6 +79,8 @@ namespace Microsoft.AspNetCore.Components.Web
             }
         }
 
+        [DynamicDependency(JsonSerialized, typeof(DataTransfer))]
+        [DynamicDependency(JsonSerialized, typeof(DataTransferItem))]
         private static bool TryDeserializeStandardWebEventArgs(string eventName, string eventArgsJson, [NotNullWhen(true)] out EventArgs? eventArgs)
         {
             // For back-compatibility, we recognize the built-in list of web event names and hard-code