Commit ca1a8552 authored by Dominique CLAUSE's avatar Dominique CLAUSE
Browse files

git commit -m 'Issue #3220334 by fathima.asmat: value.autocomplete is not a function'

parent b9cca6da
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -205,9 +205,9 @@ function search_autocomplete_library_info_build() {
 */
function search_autocomplete_library_info_alter(array &$libraries, $extension) {
  if ($extension == 'core' && isset($libraries['drupal.autocomplete'])) {
    $libraries['drupal.autocomplete']['js'] = [
      '/' . drupal_get_path('module', 'search_autocomplete') . '/js/jquery.autocomplete.js' => [],
    ];
    $libraries['drupal.autocomplete']['js'] = array_merge($libraries['drupal.autocomplete']['js'], [
      '/' . drupal_get_path('module', 'search_autocomplete') . '/js/jquery.autocomplete.js' => ['weight' => 0],
    ]);
  }
}