Title: autocomplete.js version update?
Last modified: June 3, 2024

---

# autocomplete.js version update?

 *  Resolved [craigsnydervector](https://wordpress.org/support/users/craigsnydervector/)
 * (@craigsnydervector)
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/)
 * We use the plugin to enable the autocompletion dropdown for the search. We want
   to set up event tracking (Algolia has some of that built-in), but it indicates
   we need version 1.12 or greater of autocomplete.js.
 * As far as I can tell, the version in the plugin is 0.38.1 (i’m looking in the
   dist folder in the plugin). Is this correct? What will happen if we update to
   the latest and greatest? Or is the a recommended/suggested version that will 
   work with the plugin? We currently have v2.8.1 of the plugin
 * Thanks
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fautocomplete-js-version-update%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17799633)
 * Hi there,
 * Yes, out of box we still have version 0.38.x as the default. We have yet to either
   figure out an easy way to seamlessly upgrade everyone, or just accept the proverbial
   bandaid needing ripped off.
 * I know we have this branch [https://github.com/WebDevStudios/wp-search-with-algolia/tree/feature/272-autocomplete-upgrade](https://github.com/WebDevStudios/wp-search-with-algolia/tree/feature/272-autocomplete-upgrade)
   where we started working offering a version picker, but it does need a refresh
   from the looks of things.
 * We have this open issue with deeper discussion as well [https://github.com/WebDevStudios/wp-search-with-algolia/issues/232](https://github.com/WebDevStudios/wp-search-with-algolia/issues/232)
 * For example, the biggest hurdle is that we won’t be able to automatically attach
   ourselves to a given theme’s search field. This is because of this change from
   Autocomplete:
 *     ```wp-block-code
       <!-- Autocomplete v0.x -->
       <input id="autocomplete" />
   
       <!-- Autocomplete v1.x -->
       <div id="autocomplete"></div>
       ```
   
 * For example we presently target the search field with this selector:
 *     ```wp-block-code
       input[name='s']:not(.no-autocomplete):not(#adminbar-search)
       ```
   
 * Based on how WordPress search works, that name selector is pretty ubiquitous.
 * Once upgraded, each site owner is going to need to drop in `<div id="autocomplete"
   ></div>` spot themselves, as well as take care of any new styling issues that
   come from this HTML markup change.
 *  Thread Starter [craigsnydervector](https://wordpress.org/support/users/craigsnydervector/)
 * (@craigsnydervector)
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17799713)
 * OK. Thanks for the links and details. Definitely helpful. Seems there is more
   time we will need to work on this for our site.
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17799780)
 * We also need to return to working on getting that branch ready as a feature, 
   to be honest. I know there’s a good amount of clamoring for the new Autocomplete
   because of details like analytics and event tracking.
 *  Thread Starter [craigsnydervector](https://wordpress.org/support/users/craigsnydervector/)
 * (@craigsnydervector)
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17802695)
 * Can you put us on your list for testing/early notice? Thanks
 *  Plugin Contributor [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * (@tw2113)
 * The BenchPresser
 * [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17804057)
 * We don’t really have a great setup at the moment for reaching out to people manually,
   so the best thing to do would be to keep an eye on the repo itself on GitHub,
   and most specifically this PR:
 * [https://github.com/WebDevStudios/wp-search-with-algolia/pull/370](https://github.com/WebDevStudios/wp-search-with-algolia/pull/370)
 * Admittedly as well, I’m curious how well the current PR would work, as is, outside
   of some potential needs to run some composer and npm commands. I know we’ve had
   a handful of releases since then for the .org copy of file structure, but none
   of those are touching autocomplete things either. Just some thoughts.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘autocomplete.js version update?’ is closed to new replies.

 * ![](https://ps.w.org/wp-search-with-algolia/assets/icon-256x256.png?rev=2894668)
 * [WP Search with Algolia](https://wordpress.org/plugins/wp-search-with-algolia/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-search-with-algolia/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-search-with-algolia/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-search-with-algolia/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-search-with-algolia/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Michael Beckwith](https://wordpress.org/support/users/tw2113/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/autocomplete-js-version-update/#post-17804057)
 * Status: resolved