alexis-magina / cmb2-field-post-search-ajax

CMB2 field type to attach posts to each others.
GNU General Public License v3.0
40 stars 18 forks source link

Autocomplete interferes with category/tag/taxonomy selectors #19

Open peterjanes opened 7 years ago

peterjanes commented 7 years ago

Autocomplete for taxonomy selectors doesn't work when a post-search-ajax field is on the form. I believe it's either caused by re-registering the autocomplete script's ID (WordPress has its own) or from attaching it to the same location in jQuery. (This is using the Latest tag, which I believe is equivalent to v1.1.5.)

flacoman91 commented 7 years ago

The autocomplete does indeed break the Tag autocompletion.

I was able to fix this by upgrading the referenced jquery autocomplete to version 1.4.1 https://github.com/devbridge/jQuery-Autocomplete

AsafAzoulay commented 6 years ago

how can i fix this bug?

luistinygod commented 4 years ago

I was also able to fix a conflict with other WP plugin by updating the jQuery autocomplete version to 1.4.10, as suggested by flacoman91. Download it here https://github.com/devbridge/jQuery-Autocomplete and place the file jquery.autocomplete.min.js at /wp-content/plugins/cmb2-field-post-search-ajax/js