Skip to content

Commit e11caec

Browse files
author
a.laurowski
authored
FFWEB-2469 fix searchbox does not appear in mobile
1 parent 547116f commit e11caec

3 files changed

Lines changed: 17 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,15 @@
11
# Changelog
2+
## [Unreleased]
3+
### Fix
4+
- Searchbox
5+
- searchbox does not appear after clicking on magnifier icon
6+
7+
### Change
8+
- `jquery.search.js` plugin
9+
- override `onKeyUp` to prevent sending redundant native suggest calls using `ajax_search` controller
10+
-`Resources/views/frontend/index/index.tpl`
11+
- restore adding `data-search` in `frontend_index_shop_navigation` block. Lack of this directive disabled the searchbox show/hide functionality in mobile
12+
213
## [v3.0.1] - 13.03.2022
314
### Fix
415
- fix `sid` attribute is defined in `ff-communication template` causing it to be generated always with same value
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
$.overridePlugin('swSearch', {
2+
//silence the default suggestions
3+
onKeyUp: function(response) {
4+
return true;
5+
}
6+
});

Resources/views/frontend/index/index.tpl

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
{extends file='parent:frontend/index/index.tpl'}
22

3-
{* Prevent Shopware AJAX search *}
4-
{block name='frontend_index_shop_navigation'}
5-
{capture assign='shopNavigation'}{$smarty.block.parent}{/capture}
6-
{$shopNavigation|replace:' data-search="true"':''}
7-
{/block}
8-
93
{block name='frontend_index_after_body'}
104
{$smarty.block.parent}
115

0 commit comments

Comments
 (0)