Skip to content

data-enhance-nav=false is ignored on <svg> elements #51440

@SteveSandersonMS

Description

@SteveSandersonMS

Inside NavigationEnhancement.ts, the logic that decides whether to bypass enhanced nav based on the element clicked looks like:

  if (event.target instanceof HTMLElement && !enhancedNavigationIsEnabledForElement(event.target)) {
    return;
  }

It should say Element instead of HTMLElement, because HTMLElement excludes SVGElement. There is no reason why SVG elements should behave differently from HTML elements in this regard.

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor ComponentsbugThis issue describes a behavior which is not expected - a bug.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions