diff --git a/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs b/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs index 29b81570756..94f21d8ea96 100644 --- a/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs @@ -77,7 +77,7 @@ private static bool IsVisible(this IEditorItem item, ItemChangedType changedType /// public static bool CanWrite(this IEditorItem item, Type modelType) { - return modelType == typeof(DynamicObject) || modelType.IsSubclassOf(typeof(DynamicObject)) || ComplexCanWrite(); + return typeof(IDynamicObject).IsAssignableFrom(modelType) || ComplexCanWrite(); bool ComplexCanWrite() {