Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By Rob230 on
This is a bizarre one. I can't think of a reason why it wouldn't work only in this specific set of circumstances.
I have an autocomplete field. It's an Entity reference to User entities.
In Firefox and IE the autocomplete always works. In Chrome and Opera autocomplete does NOT work, except for admins.
I have stepped through the JavaScript with a debugger and it is correctly fetching the list of users and creating the popup and populating it, but for some reason it's being shown very far down the page (usually offscreen).
Comments
On further investigation it
On further investigation it seems that maybe Bartik theme is somehow at fault. Autocomplete always works with the admin theme, which is why it works for admins, but in Chrome and Opera the autocomplete popup is appearing off the screen for Bartik.
Edit: it turns out the popup also appears in the wrong place in Firefox, but at least it's visible. It appears above and to the left. Something to do with Bartik is making the positioning of the autocomplete popup wrong. It is OK in IE except for the throbber can always be seen just below where it normally is.
I've found a fix. See
I've found a fix. See #1218684: Autocomplete popup positioned 2.5em lower in "Seven theme" using Firefox. Post #11 fixed it.
I had the same problem.
I had the same problem. thanks you ! :)