Skip to content

Commit b60f904

Browse files
authored
ENGCOM-5354: [Backport] Fixed issue #18337 #23331
2 parents 2a9247f + 5cbe295 commit b60f904

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/code/Magento/Search/view/frontend/templates/form.mini.phtml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ $helper = $this->helper(\Magento\Search\Helper\Data::class);
3535
role="combobox"
3636
aria-haspopup="false"
3737
aria-autocomplete="both"
38-
autocomplete="off"/>
38+
autocomplete="off"
39+
aria-expanded="false"/>
3940
<div id="search_autocomplete" class="search-autocomplete"></div>
4041
<?= $block->getChildHtml() ?>
4142
</div>

app/code/Magento/Search/view/frontend/web/js/form-mini.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,7 @@ define([
7171
this.isExpandable = true;
7272
}.bind(this),
7373
exit: function () {
74-
this.isExpandable = false;
75-
this.element.removeAttr('aria-expanded');
74+
this.isExpandable = true;
7675
}.bind(this)
7776
});
7877

0 commit comments

Comments
 (0)