Skip to content

Commit

Permalink
Use ordinal comparison when detecting event handler attributes. Fixes #…
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveSandersonMS authored and HaoK committed Aug 7, 2020
1 parent 775ffb2 commit d7a3ecf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit d7a3ecf

Please sign in to comment.