backdrop-contrib / gin

Admin theme with a strong focus on improving the Editorial Experience.
https://backdropcms.org/project/gin
GNU General Public License v2.0
5 stars 2 forks source link

error with autocomplete fields #69

Closed robertgarrigos closed 8 months ago

robertgarrigos commented 10 months ago

I'm having an issue with autocomplete fields, in this case with node reference: depending on which position are in the node creation/edit form, suggestions are missing. When the autocompleted field is near the top of the form, the suggestions list appears normally. When the field is near the bottom because other fields are before, the suggestion’s list is missing. I tried with the same field, just put in a different position within the form.

Incidència___ERP Crea_Incidència___ERP Incidència___ERP Crea_Incidència___ERP

Switching to Seven fixes the problem.

laryn commented 9 months ago

@robertgarrigos I'm having trouble reproducing this with the core Entity Reference or the contrib References module. Can you provide steps to reproduce?

robertgarrigos commented 8 months ago

Looking into this because I'm having this problem with a particular site, but not on my local testing site. It might be an incompatibility with a contrib module.

robertgarrigos commented 8 months ago

Found the problem: incompatibility with jquery update contrib module set to use jquery 2.2. No problem with jquery 1 or 3.

With jquery 2.2 the div with id='autocomplete' gets printed within the parent div of the autocomplete field instead of as first div right after the opening body html tag.

laryn commented 8 months ago

Wow, I didn't even know we had a jQuery update for Backdrop! With core offering the old 1.x branch as well as the latest 3.x branch, which both seem to work according to your testing, I think this is not a high priority bug. Do you agree? Or are you unable to switch to jQuery 3.x?

robertgarrigos commented 8 months ago

I just switched to 3.x. Let's see how it goes ;-) thanks!

laryn commented 8 months ago

Sounds good. Please reopen if necessary -- closing for now.