Problem
The autosubmit functionality for autocomplete forms is broken.
How to replicate
Use search_api_autocomplete (7.x-1.4) and Bootstrap theme 7.x-3.5.
Configure a form to use the autocomplete functionality.
Check if it works.
Proposed resolution
Adjust theme's js overwrite regarding the autocomplete functionality.
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | bootstrap-autosubmit-fix-2695405-7.patch | 634 bytes | mfernea |
Comments
Comment #2
mfernea commentedHere is the patch.
Comment #3
markhalliwellI'm not entirely sure what this is attempting to accomplish or why it's necessary.
Comment #4
ivoo56 commentedThanks mfernea!
Without your patch api autocomplete is useless on Bootstrap post 7.x-3.0
Comment #5
mfernea commented@markcarver:
This is the autocomplete override from search_api_autocomplete/search_api_autocomplete.js
This overrides the default behaviour from misc/autocomplete.js
My patch does the same for Bootstrap's autocomplete implementation.
Comment #6
markhalliwellLet's add a comment above
return true;explaining this then because it wasn't apparent why diverging from core's code was necessary.Comment #7
mfernea commentedHere is the updated patch.
Comment #9
markhalliwellComment #11
ressaI couldn't see the 21 February 2017 commit from #8 in the latest release, but in the log I could see that the patch has since been removed. See #2908695: Pressing enter key to select autocomplete option the form gets submitted automatically. for an explanation.
Comment #12
francescosciamanna commentedTo whom may still run on this issue, I solved it by installing jQuery Update Module.
Comment #13
ressaSadly, installing jQuery Update module didn't fix it for me ... has anybody found a simple work-a-round for it so far?