kuzzleio / kuzzle-admin-console

A SPA to administrate your Kuzzle: index and collection management, document creation, realtime subscription and permissions management
http://console.kuzzle.io
Apache License 2.0
61 stars 25 forks source link

[bug] Correctly update the quick-search input #908

Closed Leodau closed 2 years ago

Leodau commented 3 years ago

Expected Behavior

Correctly have quick-search in sync with the interface.

Current Behavior

When changing pages after doing a search and coming back, the query is saved and applied BUT the search input is empty. (Ghost query effect)

It seems like the search queries are correctly saved and re-applied on page refresh, but the search input control is not in sync.

Steps to Reproduce

  1. Go to the Security/User tab.
  2. Create a new user (kuid test)
  3. Back at the User tab, execute a quick-search like: alyx (You should now have an empty result)
  4. Click and go to another tab (ex. Profiles)
  5. Click and come back to the User tab. (You should see that your input is empty, but your query is still being applied)

Or,

  1. Make any quick-search query
  2. Reload the page

Context (Environment)

Kuzzle version: 2.9.2 Admin Console version: 4

xbill82 commented 3 years ago

Let's take a moment to solve the problem of the AutoFocus