Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
P4
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: None
-
Template:customfield_11100 25140
-
Development Team:Prokopovych
Description
Checkbox filter-sections in MultiSelectionFilter appear to use a label prop to derive the id attribute of their section accordions. The label is a FormattedMessage, however, not a string, and this results in element IDs such as [object Object]-1.
For example, see the "Patron group" accordion of the main ui-users page.
Per Yurii Danylenko
This bug appears because filterConfig, passed to SearchAndFilter component, provides <FormattedMessage /> as a label. As a solution we can replace FormattedMessage with translation keys and translate label before passing to SearchAndFilter component. This should be done in all UI modules that use filterConfig. Link to PR for ui-requests https://github.com/folio-org/ui-requests/pull/326