Closed romidane closed 2 weeks ago
Hi! We noticed there hasn’t been activity on this issue in a while. After 30 days, it will close automatically.
If it’s still relevant, or you have updates, comment and let us know. And don’t worry, you can always re-open later if needed.
Issue summary
I've discovered a bug with the Combobox component. The
<ListBox />
component, when dynamically rendered based on input, does not appear as expected. The issue manifests under the following conditions:Expected behavior
The
ListBox
should become visible as soon as a single character is inserted into theTextField
.Actual behavior
The
ListBox
remains invisible until two characters have been inserted into theTextField
.https://github.com/Shopify/polaris/assets/5043138/94abcf6c-dedb-474d-a4e7-9692ef33df89
Steps to reproduce the problem
<Combobox />
.<Listbox />
only becomes visible after typing two characters.Reduced test case
This issue seems to occur only on the initial render. Once two characters are entered and then cleared, the component appears to function as expected. I've set up a sandbox to illustrate the issue: https://codesandbox.io/p/sandbox/quizzical-tree-ztr6sh?file=%2FApp.tsx%3A83%2C15.
Thank you for your attention to this matter.