polaris
polaris copied to clipboard
[Autocomplete] Add onClose prop
Originally posted here
We would like to clear the search field when the user removes focus from the input OR the popover. If we were provided an onClose callback, we could use this to clear the search field.
https://github.com/Shopify/polaris-react/pull/479