inveniosoftware / react-invenio-forms

React component library for Formik components.
https://react-invenio-forms.readthedocs.io
MIT License
0 stars 27 forks source link

RemoteSelect: pass searchQueryParamName as a property #242

Closed carlinmack closed 4 months ago

carlinmack commented 5 months ago

:heart: Thank you for your contribution!

Description

Please describe briefly your pull request.

The remote select field assumes that we always want to pass the searchQuery with ?suggest=[searchQuery]. Often we want to instead use q=[searchQuery] or similar. This PR allows us to customise the name of the parameter using props

Checklist

Ticks in all boxes and 🟢 on all GitHub actions status checks are required to merge:

Frontend

Reminder

By using GitHub, you have already agreed to the GitHub’s Terms of Service including that:

  1. You license your contribution under the same terms as the current repository’s license.
  2. You agree that you have the right to license your contribution under the current repository’s license.