If there is no "core/drupal.autocomplete" library loaded on the page then viewsreference causes a JS error.

Comments

recrit created an issue. See original summary.

recrit’s picture

Status: Active » Needs review
StatusFileSize
new292 bytes

The attached patch adds a library dependency for "core/drupal.autocomplete" to ensure that it is loaded on the page and loaded before the viewsreference JS.

It was not clear the use case to override the autocomplete functionality. If it is not needed, then it should be removed so it does not interfere with all autocomplete functionality on the form.

  • seanB committed acb1402 on 8.x-2.x authored by recrit
    Issue #2898797 by recrit: JS Error: Missing Drupal.autocomplete causes...
seanb’s picture

Thanks! Committed and pushed...

seanb’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.