Преглед на файлове

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

Fixes https://github.com/dotnet/aspnetcore/issues/31950
Pranav K преди 5 години
родител
ревизия
64519d26fd
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  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