Skip to content

has_many multiselect does not display autocomplete options in mobile browser #3699

@RyanTG

Description

@RyanTG

Describe the bug
This only seems to occur in mobile browsers. I have tried Safari in iOS, and Chrome in Android.

Type in the search in the multiselect form. No options are displayed. Instead "0 items" (or "0 selected" on android).

However, you can click the "0 items" text and it opens a popup that shows these hidden matches. From there you can select one or more, and then move them over to the right. Once moved over, the right hand box will say "0 items". You then have to click "0 items" in the right box and select it. Phew!

See video example:

RPReplay_Final1726362164.mov

A part of me wonders if this is an intentional design decision by rails admin. But if so, it's not intuitive.

Reproduction steps
I am using sprockets.

Use the has_many multiselect form and type something that should yield an autocomplete match.

Expected behavior
I should expect it to behave like the desktop browser. In desktop, once you start typing in, a list of autocomplete matches is displayed. You can highlight one and move it to the right.

Additional context

  • rails version: both 7.1.4 and 7.2.1
  • rails_admin version: both 3.1.4 and 3.2.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions