You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Open popup - we can see aria-owns and aria-described by attributes on <li> DOM elements;
Set new data array (change data) - attributes dissapears.
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.
The text was updated successfully, but these errors were encountered:
Description
When the popup is opened and new data is set to the DropdownList, the
aria-owns
andaria-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
andaria-described
by attributes on<li>
DOM elements;Set new data array (change data) - attributes dissapears.
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 thengAfterViewInit
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.
The text was updated successfully, but these errors were encountered: