소스 검색

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

Fixes https://github.com/dotnet/aspnetcore/issues/31950
Pranav K 4 년 전
부모
커밋
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)
         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
             // For back-compatibility, we recognize the built-in list of web event names and hard-code