inveniosoftware / react-searchkit

React component library for interacting with a REST API.
https://inveniosoftware.github.io/react-searchkit/
MIT License
78 stars 40 forks source link

Make selected option label match the available sorting options. #237

Closed Pineirin closed 1 year ago

Pineirin commented 1 year ago

The sort options are defined in a dictionary. Currently, the list of possible sort options come from the title attribute of the mentioned dictionary, while the option that appears selected in the dropdown item comes from the keys of the dictionary. This may cause mismatch between the selected option on the dropdown item and the one selected on the dropdown menu.

Origin and more information can be found in: https://github.com/inveniosoftware/invenio-administration/pull/132#issuecomment-1265083056.

Pineirin commented 1 year ago

Should be in invenio-search-ui. (https://github.com/inveniosoftware/invenio-search-ui/issues/165)