Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
RyanTG opened this issue Sep 15, 2024 · 0 comments
Open

Comments

@RyanTG
Copy link

RyanTG commented Sep 15, 2024

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants