Skip to content

Commit ed319b8

Browse files
committed
Should support IDynamicObject in IEditorItem CanWrite
1 parent bd8f306 commit ed319b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ private static bool IsVisible(this IEditorItem item, ItemChangedType changedType
7777
/// <returns></returns>
7878
public static bool CanWrite(this IEditorItem item, Type modelType)
7979
{
80-
return modelType == typeof(DynamicObject) || modelType.IsSubclassOf(typeof(DynamicObject)) || ComplexCanWrite();
80+
return typeof(IDynamicObject).IsAssignableFrom(modelType) || ComplexCanWrite();
8181

8282
bool ComplexCanWrite()
8383
{

0 commit comments

Comments
 (0)