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

Fix: enter key runs previous query #2348

Merged
merged 4 commits into from
Jan 18, 2023
Merged

Fix: enter key runs previous query #2348

merged 4 commits into from
Jan 18, 2023

Conversation

thewahome
Copy link
Collaborator

Overview

Fixes #2338

Notes

It fails for the use case where a user types in something and it is the only thing in the suggestions. Since we didn't assume this becomes the selected suggestion, the query doesn't get changed.

It is fixed by appending the suggestion to the URL

Testing Instructions

  • Run /me
  • Change me to users
  • Hit enter
  • Notice the results for /users in the response

@thewahome thewahome requested review from Onokaev and ElinorW January 17, 2023 07:58
@@ -58,6 +58,7 @@ const AutoComplete = (props: IAutoCompleteProps) => {
const targetValue = e.target.value;
setQueryUrl(targetValue);
props.contentChanged(targetValue);
console.log(targetValue)
Copy link
Contributor

Choose a reason for hiding this comment

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

Must have forgotten this :)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Nice catch

@Onokaev Onokaev self-requested a review January 17, 2023 09:20
@thewahome thewahome merged commit 041cefc into dev Jan 18, 2023
@sonarqubecloud
Copy link

Please retry analysis of this Pull-Request directly on SonarCloud.

@github-actions
Copy link
Contributor

Azure Static Web Apps: Your stage site is ready! Visit it here: https://jolly-sand-0ac78c710-2348.centralus.azurestaticapps.net

@thewahome thewahome deleted the fix/enter-not-working branch February 8, 2023 08:35
@github-actions github-actions bot mentioned this pull request Feb 8, 2023
thewahome pushed a commit that referenced this pull request Feb 13, 2023
Feature: add general playwright tests (#2149)

Task: Add Graph Support Info on README.md (#2347)

Task: Add logging for script errors (#2351)

Task: Add language snippet telemetry (#2371)

Task: Rename sample query "all the items in my drive" to "list items in my drive" (#2350)

Fix: Response area container heights (#2372)

Fix: Re-order tests (#2354)

Fix: Inform user if URL is incomplete (#2367)

Fix: Autocollapsing of history items (#2331)

Fix: Screen blanking on render (#2403)

Fix: Add method to filter ResizeObserver exceptions (#2342)

Fix: enter key runs previous query (#2348)

Fix: autocomplete character selection (#2304)

Fix: Display beta resources subgroups for admin group (#2364)

Fix: Update deprecated aria-label (#2368)

Fix: Default overlay on collections review panel (#2377)

Chore: December dependabot upgrades (#2296)

Chore: Dependabot upgrades February (#2401)

chore: Dependabot upgrades (#2335)

Chore: Code cleanup (#2251)
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.

ENTER keyboard shortcut to run the current query is broken
3 participants