Skip to content

Commit fe48776

Browse files
committed
fix: improve UI framework adapter check for field renderer registration
1 parent 9a43ec9 commit fe48776

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FormCraft/Forms/Extensions/ServiceCollectionExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static IServiceCollection AddFormCraft(this IServiceCollection services)
3636

3737
// Only register built-in field renderers if no UI framework adapter is registered
3838
// This allows UI framework-specific renderers to take precedence
39-
if (!services.Any(s => s.ServiceType == typeof(IUIFrameworkAdapter)))
39+
if (services.All(s => s.ServiceType != typeof(IUIFrameworkAdapter)))
4040
{
4141
services.AddScoped<IFieldRenderer, StringFieldRenderer>();
4242
services.AddScoped<IFieldRenderer, IntFieldRenderer>();

0 commit comments

Comments
 (0)