Describe the bug
In two-list component, when the Available Fields or Fields To Show list is filtered, the counter of the corresponding "Add All"/"Remove all" link is not updated, and displays the total amount of available/visible items.
Thus, when "Add All" or "Remove All" is clicked, the number of items moved to the other list does not match the value of that counter.
To Reproduce
Steps to reproduce the behavior:
Go to a screen with a two-list component
Supposing that M items are listed in Available Fields, set the list filter to a value so that N<M items are listed
See that link states "Add all (M)" (it should be "Add all (N)"
Click "Add all". N items are moved to Visible list.
Do the same with the Fields To Show and the "Remove all" link
Expected behavior
The counters of "Add All (...)" and "Remove All (...)" links should match the number of items that are being actually listed at that moment.
Screenshots
Desktop (please complete the following information):
OS: Windows 10
Browser: Chrome
Version: 126.0.6478.127 (Official Build) (64-bit)
Additional context
Add any other context about the problem here.
Describe the bug In two-list component, when the Available Fields or Fields To Show list is filtered, the counter of the corresponding "Add All"/"Remove all" link is not updated, and displays the total amount of available/visible items. Thus, when "Add All" or "Remove All" is clicked, the number of items moved to the other list does not match the value of that counter.
To Reproduce Steps to reproduce the behavior:
Expected behavior The counters of "Add All (...)" and "Remove All (...)" links should match the number of items that are being actually listed at that moment.
Screenshots
Desktop (please complete the following information):
Additional context Add any other context about the problem here.