Setting the Id configuration of a TreeView node does not add the data-id attribute #7128
Labels
Bug
C: TreeView
FP: Completed
Sync status with associated Feedback Item
S: Wrappers (ASP.NET Core)
SEV: Low
Milestone
Bug report
The TreeView rendering in UI for ASP.NET MVC and UI for ASP.NET Core are not consistent. Setting the
Id
configuration for an item in UI for ASP.NET MVC renders adata-id
attribute, that is missing in UI for ASP.NET Core.Reproduction of the problem
Current behavior
When using the UI for ASP.NET Core the rendered
<li>
element does not have thedata-id
attribute that is present in UI for ASP.NET MVCExpected/desired behavior
Rendering should be consistent and the
data-id
attribute added in UI for ASP.NET Core.Workaround
Use the
HtmlAttributes
configuration to add thedata-id
attributeEnvironment
The text was updated successfully, but these errors were encountered: