diff --git a/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs b/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs index 8f39258ddc67..6adf9cffbfac 100644 --- a/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs +++ b/src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs @@ -954,7 +954,7 @@ private static void InitializeNewAttributeFrame(ref DiffContext diffContext, ref // based on the common usage of attributes for DOM events. if ((newFrame.AttributeValue is MulticastDelegate || newFrame.AttributeValue is EventCallback) && newFrame.AttributeName.Length >= 3 && - newFrame.AttributeName.StartsWith("on")) + newFrame.AttributeName.StartsWith("on", StringComparison.Ordinal)) { diffContext.Renderer.AssignEventHandlerId(ref newFrame); }