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

Access issues on mobile and tablet Webkit/Chrome browsers #138

Open
krsandesh opened this issue Apr 8, 2021 · 7 comments
Open

Access issues on mobile and tablet Webkit/Chrome browsers #138

krsandesh opened this issue Apr 8, 2021 · 7 comments

Comments

@krsandesh
Copy link

krsandesh commented Apr 8, 2021

We have used this in webapplication and on all the browsers on laptops this is working fine, but accessing this on the tablet browsers like on android(chrome browser) and iOS (safari), the list is not displaying the content.

Please find the attached screen shot on laptop browser
duallistbox-noissue

Please find the attached screen shot on tablet browser
duallistbox-issue

@jakezatecky
Copy link
Owner

I can replicate this behavior on Chrome on Android (but not Firefox on mobile).

It appears that Webkit-derived browsers will show this alternative to <select> lists. Tapping the gray area will allow a user to select the items, but this is not as ideal as a traditional <select> list. This may further drive the need for custom option rendering (#38) to provide a more attractive UI for mobile devices.

@krsandesh
Copy link
Author

@jakezatecky Any ETA that we can get to make this work ? I mean on custom option rendering feature ?

@jakezatecky
Copy link
Owner

To be frank, that feature is a bit lower on the priority list.

I would welcome a pull request that implements custom option rending. Whatever we support needs to emulate many of the similar DOM events that <select> elements have. It is very feasible but a bit of a chore.

@jakezatecky jakezatecky changed the title Issue when accessing this component on tablet browsers Access issues on mobile and tablet Webkit/Chrome browsers Oct 14, 2022
@jakezatecky
Copy link
Owner

jakezatecky commented Oct 14, 2022

I spent a fair bit of time today researching how to mitigate this issue. It appears there is no way to force Webkit and Chromium mobile browsers to render a list of items when using the multiple flag on <select> elements like we do. It will always show that "X selected" interface even when specifying the size property. Firefox behaves correctly, but it is a minority browser.

The only way to approach this issue is to forgo the native <select> and <option> elements and use custom DOM elements to mimic that functionality. This is not an easy task, and would require either using a third-party library or writing our own.

@baranoden
Copy link

any updates on mobile view issue? @jakezatecky

@jakezatecky
Copy link
Owner

I already detailed my findings above.

Without replacing the native select HTML elements with something custom, this issue will persist. I am not keen on spending 20+ hours rewriting the entire internals to use custom elements all because Chrome refuses to provide any mechanism to force regular behavior on mobile devices. Thus, this is exceptionally low priority.

@jakezatecky
Copy link
Owner

A Chromium bug tracker exists for this issue. It is unlikely to get any fix anytime soon, so a rewrite of underlying components may be necessary.

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

3 participants