Skip to content

Fix/debounce search#768

Merged
henriquecbuss merged 2 commits intomasterfrom
fix/debounce-search
Jun 23, 2022
Merged

Fix/debounce search#768
henriquecbuss merged 2 commits intomasterfrom
fix/debounce-search

Conversation

@henriquecbuss
Copy link
Member

What issue does this PR close

Closes #758

Changes Proposed ( a list of new changes introduced by this PR)

  • Only show result from search query if it comes from the string currently present in the input field
  • Use Gizra/elm-debouncer so we don't fire multiple queries that will end up being discarded anyway

How to test ( a list of instructions on how to test this PR)

You need a combination of keystrokes that can cause the bug (described in the issue). You can try to find one here. An example in the Buss community is having ac in the search, then deleting c and typing it again quickly.

You can then test that combination in the deploy of this PR.

@netlify
Copy link

netlify bot commented Jun 23, 2022

Deploy Preview for cambiatus-elm-book ready!

Name Link
🔨 Latest commit 9245797
🔍 Latest deploy log https://app.netlify.com/sites/cambiatus-elm-book/deploys/62b4ce51a4f989000847d2a8
😎 Deploy Preview https://deploy-preview-768--cambiatus-elm-book.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@henriquecbuss henriquecbuss requested a review from lucca65 June 23, 2022 20:34
@netlify
Copy link

netlify bot commented Jun 23, 2022

Deploy done!

Name Link
🔨 Latest commit 9245797
🔍 Latest deploy log https://app.netlify.com/sites/cambiatus/deploys/62b4ce516e9c0c00086b7bfb
😎 Deploy Preview https://deploy-preview-768--cambiatus.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@lucca65 lucca65 left a comment

Choose a reason for hiding this comment

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

Nice!

@henriquecbuss henriquecbuss merged commit 733e47e into master Jun 23, 2022
@henriquecbuss henriquecbuss deleted the fix/debounce-search branch June 23, 2022 22:59
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.

Ao digitar rápido no campo de busca, temos resultados errados

2 participants