Skip to content

Commit bd8f306

Browse files
author
卢骥
committed
Revert "Update IEditorItemExtensions.cs"
This reverts commit f7f0607.
1 parent f7f0607 commit bd8f306

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this
2-
// file to you under the Apache 2.0 License See the LICENSE file in the project root for more information.
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the Apache 2.0 License
3+
// See the LICENSE file in the project root for more information.
34
// Maintainer: Argo Zhang([email protected]) Website: https://www.blazor.zone
45

56
using System.Reflection;
@@ -76,7 +77,7 @@ private static bool IsVisible(this IEditorItem item, ItemChangedType changedType
7677
/// <returns></returns>
7778
public static bool CanWrite(this IEditorItem item, Type modelType)
7879
{
79-
return typeof(IDynamicObject).IsAssignableFrom(modelType) || ComplexCanWrite();
80+
return modelType == typeof(DynamicObject) || modelType.IsSubclassOf(typeof(DynamicObject)) || ComplexCanWrite();
8081

8182
bool ComplexCanWrite()
8283
{

0 commit comments

Comments
 (0)