Skip to content

[SearchBar] Autocomplete not opening on focus with inputType search #1074

@bgoyarts

Description

@bgoyarts

Describe the bug
When setting the inputType prop to search on the searchbar component, the openAutocompleteOnFocus the autocomplete field is not opened when the input field receives focus.

To Reproduce
Steps to reproduce the behavior:

  1. Place the searchbar somewhere in your template with the following props:
{
  "props": {
    "openAutocompleteOnFocus": true,
    "inputType": "search"
  }
}
  1. Go to your store, put your cursor inside the input field so it receives focus
  2. Autocomplete is not expanded

Expected behavior
The autocomplete should be expanded showing top searches and search history

Screenshots
search-focus

Desktop (please complete the following information):

  • all

Smartphone (please complete the following information):

  • all devices

Additional context
The reason why this issue exists:

minor untidy issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions