Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autocomplete: fix multiple search input in a page #79

Merged
merged 1 commit into from
Dec 10, 2019

Conversation

jma
Copy link
Contributor

@jma jma commented Dec 9, 2019

  • The input value is set only if the url q parameters is for the
    autocomplete for example: records/documents.

Co-Authored-by: Johnny Mariéthoz Johnny.Mariethoz@rero.ch

Why are you opening this PR?

  • Fix an issue.

How to test?

  • Go to a page with two search inputs, try search in the search input in the page, the value of search input in the header should not be updated.

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

* The input value is set only if the url q parameters is for the
autocomplete for example: records/documents.

Co-Authored-by: Johnny Mariéthoz <Johnny.Mariethoz@rero.ch>
Comment on lines +109 to +111
index: undefined,
category: undefined,
href: undefined

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better null than undefined as discussed during the formation.

@sebdeleze sebdeleze merged commit 411ecd9 into rero:dev Dec 10, 2019
@jma jma deleted the maj-fix-autocomplete-query-params branch December 11, 2019 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants