The feature "Select without entering something" (see module description) does not work in the current D8 dev version.

Test scenario:
- Go to simplytest.me and start a D8 version with autocomplete deluxe
- Go to Extend and enable the Autocomplete Deluxe module
- Go to Structure > Taxonomy > Tags, and add some terms
- Go to Structure > Content Types > Article > Manage form display, and activate Autocomplete Deluxe for the Tags field
- Go to Content > Add Content > Article
- Click into the Tags field (do not enter a char, just click)

Expected behavior: The tags list should show up (as shown in the screenshot on the autocomplete deluxe module page)
Given behavior: No dropdown with tags, ajax spinner is spinning in blue forever

If you execute the same test with D7 version, it works as expected.

As far as I have seen, an XHR request is sent to the server, when clicking into the field without entering a char, but the request returns an empty result.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

schrammos created an issue. See original summary.

alit’s picture

Hello schrammos.

Thanks for reporting. I can reproduce the same behaviour and the attached patch fixes it for me.

yan’s picture

I can confirm the error and that the proposed patch fixes it.

sneha_surve’s picture

Corrected the patch file

alison’s picture

Patch in #4 works perfectly for me, thank you!

heliogabal’s picture

Status: Active » Reviewed & tested by the community

I also tested the patch from #4 and can confirm it fixes the issue, so setting to RTBC to advance the ticket.

alison’s picture

Hi! Is there a "next step" we should do? Just want to check in case there's something I can do to help :) Thank you!

dak5859’s picture

Initially the patch in #4 worked for me, but then I started seeing this error when clicking into entity ref field with autocomplete deluxe widget (see attached screenshot - Screen Shot 2018-11-28 at 1.08.22 PM.png). So it's failing to load the taxonomy terms based on the duplicate domain as part of the path in the URL. Has anyone see this issue and if so, do you know how to fix this problem?

Current setup:

Drupal 8.6.2
Autocomplete Deluxe 8.x-1.x-dev

Initially we thought this was due to the issue described here in #4, regarding using this module over https - https://www.drupal.org/project/autocomplete_deluxe/issues/2935363 - but even after applying that patch - the domain was completely removed from the URL to the taxonomy terms and therefore threw another error (see attached screenshot - Screen Shot 2018-11-29 at 10.37.36 AM.png).

oriol_e9g’s picture

Status: Reviewed & tested by the community » Needs work

According to #8 needs more testing.

oriol_e9g’s picture

Status: Needs work » Needs review
MrPaulDriver’s picture

Patch at #4 works for me, applied to latest dev (updated 20 Aug 2019)

Not seeing any console errors when loading taxonomy terms.

It would be good to see this issue resolved as the module is pretty unusable in it's current state.

edwardchiapet’s picture

Thanks, everyone!

It looks like this is no longer an issue based on the latest in 8.x-1.x-dev.

Will merge the patch in.

  • edwardchiapet committed 8ac5416 on 8.x-1.x authored by alit
    Issue #2923254 by sneha_surve, alit, dak5859, edwardchiapet: Select...
edwardchiapet’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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