6 references to CurrentEditContext
Microsoft.AspNetCore.Components.Forms (6)
DataAnnotationsValidator.cs (6)
29
if (
CurrentEditContext
== null)
36
_subscriptions =
CurrentEditContext
.EnableDataAnnotationsValidation(ServiceProvider);
37
_originalEditContext =
CurrentEditContext
;
41
CurrentEditContext
.Properties[typeof(DataAnnotationsValidator)] = true;
48
if (
CurrentEditContext
!= _originalEditContext)
70
CurrentEditContext
?.Properties.Remove(typeof(DataAnnotationsValidator));