TypeError: Cannot read property 'value' of undefined

1k views Asked by At

When I try to click on Search from documents element it returns error in console.

Uncaught TypeError: Cannot read property 'value' of undefined

$('.js-main-search').data('uiAutocomplete')._renderMenu = function (ul, items) {
  var branchesResults = true;
  var companiesResults = true;
  var currentCategory = '';
  var that = this;
  ul.append('<li class="search-documents-btn">Search from documents &raquo;</li>');
  // ...
});

Any suggestions?

0

There are 0 answers