Strange "white" space occurring on mobile when using an autocomplete widget for a multi valued field inside field groups

Created on 18 May 2023, about 1 year ago
Updated 24 May 2024, 22 days ago

Problem/Motivation

We have noticed some strange behavior after a recent update of the Gin Admin Theme. On mobile some strange "white" space is occurring near the top of a form, making part of the form inaccessible (see screenshot (Screenshot 2023-05-18 at 11.56.58.png) attached). After a lot of debugging we have boiled the issue down to the Autocomplete widget (entity_reference_autocomplete) when used for a multi valued field. If we change the widget to the Autocomplete (tag style) (entity_reference_autocomplete_tags) the issue disappears even though we have another (single valued field) on the form that uses the same widget. If we change the admin theme to Claro the issue disappears too. So it seems to be related to the combination of Gin Admin Theme and the Autocomplete widget on a multi valued field. The issue only occurs on mobile and only on a real iPhone (tested in Safari and in Chrome). It does not occur when testing with a small viewport in a desktop browser or on an Android device (tested in Chrome).

Steps to reproduce

- Install the latest version of Gin in Drupal 9.5.x
- Create a content type with a multi valued reference field
- Add the multi valued field and configure the field to use the Autocomplete widget on the node add / edit form
- Use BrowserStack or some other way to test the node add / edit form on a real smartphone

Proposed resolution

Find the root cause of the issue and fix it, making the full form usable again.

Remaining tasks

- Find the root cause of the issue
- Create a MR
- Review the MR
- Merge the MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands ricovandevin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @ricovandevin
  • πŸ‡³πŸ‡±Netherlands ricovandevin

    Did some more testing. It appears to occur only in iOS and field groups do not play a role. Also on node form without field groups the issue occurs.

  • Status changed to Postponed: needs info about 1 year ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    I don't seem to be affected by the described issue. Maybe you can find the root cause of this and provide a patch for it?

  • Status changed to Active 10 months ago
  • πŸ‡¬πŸ‡§United Kingdom longwave UK

    This was reported to us by a customer who is using Gin on an iPhone. This only happens in Safari on iOS that I can see; I could not reproduce in Safari on MacOS, or any other browser.

    The issue appears to lie here:

    .field-multiple-table thead {
      position: relative;
      z-index: 0;
    }
    
    .field-multiple-table thead::after {
    ...
      position: absolute;
    }
    

    The position: relative is apparently ignored by Safari and so the ::after element is positioned relative to something higher up in the tree.

  • Status changed to Fixed about 1 month ago
  • πŸ‡¨πŸ‡­Switzerland saschaeggi Zurich

    CSS3 :not() to the rescue! Consider this fixed.

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

Production build 0.69.0 2024