Skip to content

Commit d7a3ecf

Browse files
SteveSandersonMSHaoK
authored andcommitted
Use ordinal comparison when detecting event handler attributes. Fixes #24465 (#24471)
1 parent 775ffb2 commit d7a3ecf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Components/Components/src/RenderTree/RenderTreeDiffBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ private static void InitializeNewAttributeFrame(ref DiffContext diffContext, ref
954954
// based on the common usage of attributes for DOM events.
955955
if ((newFrame.AttributeValue is MulticastDelegate || newFrame.AttributeValue is EventCallback) &&
956956
newFrame.AttributeName.Length >= 3 &&
957-
newFrame.AttributeName.StartsWith("on"))
957+
newFrame.AttributeName.StartsWith("on", StringComparison.Ordinal))
958958
{
959959
diffContext.Renderer.AssignEventHandlerId(ref newFrame);
960960
}

0 commit comments

Comments
 (0)