When we install minifyjs module and minify all the js files , the Autocomplete search not working . When we type something in autocomplete field , it displays js error in autocomplete.js file . please see the attached screenshot .
File path : misc/autocomplete.js

Comments

saradaprasad17 created an issue. See original summary.

saradaprasad17’s picture

StatusFileSize
new406 bytes

Hi , fixed the the error "key is not defined" . created a patch for the issue .

longwave’s picture

Component: base system » javascript
Priority: Major » Normal
Status: Active » Needs review
Issue tags: -search results, -autocomplete

This looks like a valid fix, "key" is not scoped correctly, but instead it is probably neater to say

  for (var key in matches) {

Status: Needs review » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.