Skip to content

Commit ec92a5f

Browse files
author
Oleg Zinoviev
committed
MAGETWO-32186: WAI-ARIA in Search Autocomplete
- CR updates
1 parent 0c286a0 commit ec92a5f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ define([
8989

9090
/**
9191
* @private
92-
* Update attribute aria-haspopup (true/false).
92+
* @param {Boolean} show Set attribute aria-haspopup to "true/false" for element.
9393
*/
9494
_updateAriaHasPopup: function(show) {
95-
if (show === true) {
96-
this.element.attr('aria-haspopup', "true");
95+
if (show) {
96+
this.element.attr('aria-haspopup', 'true');
9797
} else {
98-
this.element.attr('aria-haspopup', "false");
98+
this.element.attr('aria-haspopup', 'false');
9999
}
100100
},
101101

0 commit comments

Comments
 (0)