js: Fix that the menu is not reloaded in case no search is available
fixes #12541
This commit is contained in:
parent
124fb848a0
commit
1993ae2ed2
|
@ -60,10 +60,9 @@
|
|||
if ($search[0] === document.activeElement) {
|
||||
return null;
|
||||
}
|
||||
var search = $container.find('#search').val();
|
||||
if (search.length) {
|
||||
if ($search.length) {
|
||||
var $content = $('<div></div>').append(content);
|
||||
$content.find('#search').attr('value', search).addClass('active');
|
||||
$content.find('#search').attr('value', $search.val()).addClass('active');
|
||||
return $content.html();
|
||||
}
|
||||
return content;
|
||||
|
|
Loading…
Reference in New Issue