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 misbehaves with asynchronous options #3643

Closed
mattrothenberg opened this issue Nov 18, 2020 · 3 comments
Closed

Autocomplete misbehaves with asynchronous options #3643

mattrothenberg opened this issue Nov 18, 2020 · 3 comments
Labels
Bug Something is broken and not working as intended in the system.

Comments

@mattrothenberg
Copy link

Issue summary

When setting options after an asynchronous operation, the Autocomplete component doesn't render the interactive list of options until a user presses down on their keyboard.

This can be reproduced on the Autocomplete with loading demo on https://polaris.shopify.com/components/forms/autocomplete.

Demo
Kapture 2020-11-18 at 8 09 20

Expected behavior

The option menu should be visible after the options prop changes values following an asynchronous operation.

Actual behavior

The option menu remains hidden after the options prop changes values following an asynchronous operation.

Steps to reproduce the problem

  1. Type "r" in the autocomplete box
  2. Observe that the option list is hidden
  3. Press the down button on your keyboard
  4. Observe that the option list is visible
@mattrothenberg mattrothenberg added the Bug Something is broken and not working as intended in the system. label Nov 18, 2020
@ghost
Copy link

ghost commented Nov 18, 2020

👋 Thanks for opening your first issue. A contributor should give feedback soon. If you haven’t already, please check out the contributing guidelines.

@roark
Copy link

roark commented Dec 21, 2020

I'm experiencing this as well. The AutoComplete will not redisplay the updated options unless an explicit down arrow key is pressed.

@jonpulsifer
Copy link

Duplicate of #3048

@jonpulsifer jonpulsifer marked this as a duplicate of #3048 Dec 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken and not working as intended in the system.
Projects
None yet
Development

No branches or pull requests

3 participants