Using Image Select occasionally displays a dropdown selection box

Created on 19 January 2024, about 1 year ago

Problem/Motivation

I am using the Image Select option with 3 images. Randomly, a select box is shown instead being able to click on an image to select it. It doesn't happen consistantly. There are no Javascript errors show or any errors at all. See the attached image.

Steps to reproduce

This happens randomly, so I haven't been able to reproduce it with any consistancy.

Drupal: 10.2.2
PHP 8.2

πŸ› Bug report
Status

Active

Version

6.2

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States kenrbnsn New Jersey

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

Merge Requests

Comments & Activities

  • Issue created by @kenrbnsn
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    I am not able to replicate this using the Claro theme.

    My guess is the select menu is not being correctly visibly hidden by your theme.

    Please reopen if you can provide the steps required to reproduce this issue.

  • Status changed to Closed: cannot reproduce 12 months ago
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY
  • Status changed to Active 9 months ago
  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    I have also confirmed a similar event.

    If you click on the upper left corner of the first option (image), a drop down menu appears.

    I have tried with Bartik, Clalo, and Edu-x themes and the drop down menu appears in all cases.
    I also used Chrome and Edge for Windows and Safari for iPhone as browsers.

    I would prefer not to have the drop-down menus displayed, although I have no functional problems with them.

  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    This is not a reproduction procedure, but when I put β€œdisplay: none;” in the Element CSS style,
    the drop-down menu is no longer displayed.

    I hope this will be of some help.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Adding display: none creates an accessibility issue where the image select can't be read by screen reader.

    The simplest solution is to place the select menu off-screen so it can't be accidentally clicked.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY
  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    Hi,

    First, I found a way to reproduce the problem.
    I can reproduce this problem by setting "Number of values ​​allowed" to 1.
    *Please refer to "image_select_element_A.jpg".

    And as you say, setting display:none should not work properly. On the contrary, I think this is related to the problem.
    Setting display:none seems to apply to the area shown in the figure "image_select_element_B.jpg".

    I hope this information is of some use to you.

  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    Please review the MR and see if it addresses the immediate issue.

  • Pipeline finished with Success
    4 months ago
    Total: 531s
    #358274
  • πŸ‡―πŸ‡΅Japan Ryo Ichiyama

    Thank you very much. The issue has been resolved.

  • Pipeline finished with Skipped
    4 months ago
    #367736
  • Pipeline finished with Skipped
    4 months ago
    #367737
  • πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

    The fix is a simple CSS tweak, so I am going to commit it AS-IS.

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

  • Pipeline finished with Failed
    2 months ago
    Total: 903s
    #401860
  • Pipeline finished with Success
    2 months ago
    Total: 925s
    #401878
  • Pipeline finished with Success
    2 months ago
    Total: 1209s
    #402169
  • Pipeline finished with Failed
    about 2 months ago
    Total: 96s
    #416633
  • Pipeline finished with Success
    about 2 months ago
    Total: 212s
    #417626
  • Pipeline finished with Success
    about 2 months ago
    Total: 210s
    #420887
Production build 0.71.5 2024