diff --git a/app/code/Magento/Search/view/frontend/templates/form.mini.phtml b/app/code/Magento/Search/view/frontend/templates/form.mini.phtml index a7635b7dc3fbe..888d5b678569f 100644 --- a/app/code/Magento/Search/view/frontend/templates/form.mini.phtml +++ b/app/code/Magento/Search/view/frontend/templates/form.mini.phtml @@ -35,7 +35,8 @@ $helper = $this->helper(\Magento\Search\Helper\Data::class); role="combobox" aria-haspopup="false" aria-autocomplete="both" - autocomplete="off"/> + autocomplete="off" + aria-expanded="false"/>
getChildHtml() ?> diff --git a/app/code/Magento/Search/view/frontend/web/js/form-mini.js b/app/code/Magento/Search/view/frontend/web/js/form-mini.js index 15bcf2e73393e..177ec5b50228f 100644 --- a/app/code/Magento/Search/view/frontend/web/js/form-mini.js +++ b/app/code/Magento/Search/view/frontend/web/js/form-mini.js @@ -71,8 +71,7 @@ define([ this.isExpandable = true; }.bind(this), exit: function () { - this.isExpandable = false; - this.element.removeAttr('aria-expanded'); + this.isExpandable = true; }.bind(this) });