Closed javiercn closed 1 year ago
We should also consider enabling a scenario for disabling enhanced navigation for a component hierarchy, rather than a single component only.
Done in https://github.com/dotnet/aspnetcore/pull/50551
The new rules are:
data-enhance
on the form element, or Enhance
if it's an EditForm
data-enhance-nav="true/false"
either on the <a>
itself or on any ancestor element. When a link is clicked, we find its closest ancestor with a setting and use that, so you can override in either direction.
data-enhanced-navigation
attribute on the element.