This repository was archived by the owner on Jan 14, 2025. It is now read-only.
MDC Web v1 Update List issue with classes/attributes #768
Labels
Unresolved (Archived)
Open and unresolved issues and PRs that were closed due to archiving the repository.
related #697
The list update has been merged into feat/mdcweb-typescript-update branch. This version has a bug that has issues with tracking the className and attributes.
Steps to reproduce:
result: list item is unselected. In MDC Web, the list remains selected.
This is happening because
addClassForElementIndex
adds the className to theelement.classList
. The way the List passes classes to the ListItem is via props. Since theclassList
isn't on props, we lose the added class. This is the same for attributes such asaria-hidden
.Possible fix is to bring back
listItemAttributes: {[N: number]: any};
andlistItemClassNames: {[N: number]: string[]};
, but this will most likely bring back issue #763.The text was updated successfully, but these errors were encountered: