Verified Commit 93c8d32c authored by Lee Rowlands's avatar Lee Rowlands
Browse files

Issue #3269859 by Bohus Ulrych, larowlan: Wrong JS library path when...

Issue #3269859 by Bohus Ulrych, larowlan: Wrong JS library path when a11y_autocomplete is manually installed
parent fdae208e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ function a11y_autocomplete_element_requirements($phase): array {
function _a11y_autocomplete_element_find_library(): string {
  $git_clone = DRUPAL_ROOT . '/libraries/a11y_autocomplete/src/a11y.autocomplete.js';
  if (file_exists($git_clone)) {
    return $git_clone;
    return base_path() . 'libraries/a11y_autocomplete/src/a11y.autocomplete.js';
  }
  $npm_install = dirname(DRUPAL_ROOT) . '/node_modules/@drupal/autocomplete/dist/a11y.autocomplete.min.js';
  if (file_exists($npm_install)) {