New issue
Advanced search Search tips

Issue 611986 link

Starred by 1 user

Issue metadata

Status: Archived
Owner: ----
Closed: Jun 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

phonegap select options issue in webview on Android 6.0 Samsung S6

Reported by lamnt...@gmail.com, May 14 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:46.0) Gecko/20100101 Firefox/46.0

Steps to reproduce the problem:
1. create a html select option
2. build phonegap app and install it on samsung S6
3. Open html select to pick an option, select native style open and select an option, but i don't see the option picked.
3. Touch on html select to pickup in second times, it update the option selected good.

What is the expected behavior?
We just need touch on html select element to pickup an option in one time.

What went wrong?
We need to pickup twice times to select an option on html select tag

Did this work before? N/A 

Chrome version: <Copy from: 'about:version'>  Channel: n/a
OS Version: 10.0
Flash Version: Shockwave Flash 21.0 r0

I just use simple code
<select>
<option>1</option>
<option>2</option>
<option>3</option>
</select>
 

Comment 1 by lamnt...@gmail.com, Jun 2 2016

I have looking around and found this code to fix the problem:

var allSelectElements = document.getElementsByTagName("select");
for (var i = 0; i < allSelectElements.length; i++) {
    allSelectElements[i].addEventListener("touchstart", function () {
        //This is the important line
        $(this).focus().click();
        //e.stopPropagation();
    }, false);
}
Project Member

Comment 2 by sheriffbot@chromium.org, Jun 2 2017

Status: Archived (was: Unconfirmed)
Issue has not been modified or commented on in the last 365 days, please re-open or file a new bug if this is still an issue.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment