Skip to content

Commit 81c722d

Browse files
committed
Removed attribute added code from form-mini js and added attribute in form
1 parent bf4fbf0 commit 81c722d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ define([
6969
media: '(max-width: 768px)',
7070
entry: function () {
7171
this.isExpandable = true;
72-
this.element.attr('aria-expanded', false);
7372
}.bind(this),
7473
exit: function () {
7574
this.isExpandable = true;
76-
this.element.attr('aria-expanded', false);
7775
}.bind(this)
7876
});
7977

0 commit comments

Comments
 (0)