Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the latest chrome and firefox browsers, when you click on a proposed suggestion you get following javascript error:
ReferenceError: input is not defined
input.value = $(node).data('autocompleteValue');
Fixed by (re-)adding this. to input.value:
this.input.value = $(node).data('autocompleteValue');
Problem was introduced in related issue #2338923.
Comment | File | Size | Author |
---|---|---|---|
#2 | fix_auto_suggest_input_click-2733443-1.patch | 494 bytes | lorenzs |
Comments
Comment #1
lorenzs CreditAttribution: lorenzs as a volunteer commentedlorenzs created an issue.
Patch attached with fix.
Comment #2
lorenzs CreditAttribution: lorenzs as a volunteer commentedComment #3
lorenzs CreditAttribution: lorenzs as a volunteer commentedComment #4
iamEAP CreditAttribution: iamEAP commentedThanks @lorenzs! I was able to reproduce the error you mentioned on SimplyTest.me. I was also able to verify that your patch resolves the issue and functionality (including selecting suggestions by click and by using the enter key) is restored.
Comment #6
iamEAP CreditAttribution: iamEAP commentedThis will be available in the 7.x-1.6 release.