Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KendoListComponent - groupAttibutes (aria-owns and aria-described) are losted when data updated. #4488

Open
vLutsevich opened this issue Dec 17, 2024 · 0 comments

Comments

@vLutsevich
Copy link

vLutsevich commented Dec 17, 2024

Description

When the popup is opened and new data is set to the DropdownList, the aria-owns and aria-describedby attributes disappear from the <li> elements.

In our app, data is loaded from the API after the popup is opened. Additionally, extra data portions are fetched as the list is scrolled to the bottom. The automation testing team wanted to use these the aria-owns and aria-describedby attributes for their tests, but they don't work for us.

Steps To Reproduce

https://stackblitz.com/edit/angular-bjkksh1s

  • Set grouped data to DropDownsList.

  • Open popup - we can see aria-owns and aria-described by attributes on <li> DOM elements;
    Image

  • Set new data array (change data) - attributes dissapears.
    Image

  • Open close popup - attributes appears again.

Cause in the Source Code

Upon reviewing the source code, I found that these attributes are set by the setGroupAttributes(): void method. However, this method is only invoked in the ngAfterViewInit lifecycle hook.

It appears that it should be invoked in the ngOnChanges lifecycle hook to ensure the attributes are properly updated when the data changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants