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.
Comment | File | Size | Author |
---|---|---|---|
#2 | autocomplete_deluxe-select_without_entering-2923254-2.patch | 3.09 KB | alit |
#4 | autocomplete_issue_for_empty_string.patch | 1.14 KB | sneha_surve |
#8 | Screen Shot 2018-11-28 at 1.08.22 PM.png | 47.73 KB | dak5859 |
#8 | Screen Shot 2018-11-29 at 10.37.36 AM.png | 38.98 KB | dak5859 |
Comments
Comment #2
alit CreditAttribution: alit as a volunteer commentedHello schrammos.
Thanks for reporting. I can reproduce the same behaviour and the attached patch fixes it for me.
Comment #3
yan CreditAttribution: yan commentedI can confirm the error and that the proposed patch fixes it.
Comment #4
sneha_surve CreditAttribution: sneha_surve commentedCorrected the patch file
Comment #5
alisonPatch in #4 works perfectly for me, thank you!
Comment #6
heliogabalI also tested the patch from #4 and can confirm it fixes the issue, so setting to RTBC to advance the ticket.
Comment #7
alisonHi! Is there a "next step" we should do? Just want to check in case there's something I can do to help :) Thank you!
Comment #8
dak5859 CreditAttribution: dak5859 commentedInitially 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).
Comment #9
oriol_e9gAccording to #8 needs more testing.
Comment #10
oriol_e9gComment #11
MrPaulDriver CreditAttribution: MrPaulDriver commentedPatch 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.
Comment #12
edwardchiapetThanks, 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.
Comment #14
edwardchiapet