New issue
Advanced search Search tips

Issue 615811 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: May 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug



Sign in to add a comment

Moving OPTIONs from a single SELECT to a multiple SELECT selects everything

Reported by surajgoy...@gmail.com, May 30 2016

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.63 Safari/537.36

Steps to reproduce the problem:
1. Get the code from attached file 
2. Run it on update version(51.0.2704.63 m) of chrome and previous version(50.0.2661.102 m) of chrome
3. Observe the output.

What is the expected behavior?
Multiselect drop-down should not have selected options.

What went wrong?
All the options of multi select drop-down are automatically selected.

Did this work before? N/A 

Chrome version: 51.0.2704.63  Channel: n/a
OS Version: 8
Flash Version: Shockwave Flash 21.0 r0

It was working on previous version of chrome(50.0.2661.102 m)
 
To be specific Windows Operating system is 8.1
File containing code.
POC.html
1.1 KB View Download
Components: -Blink Blink>Forms>Select

Comment 4 by tkent@chromium.org, May 30 2016

Owner: tkent@chromium.org
Status: WontFix (was: Unconfirmed)
This is a correct behavior, and I confirmed Firefox works as same.

'dropDown' is a single SELECT.  The first OPTION is selected by default.
    $('select[name=drop-down]').html(dropDown.children());
This line removes the first OPTION from dropDown and add it to select[name=drop-down].  Removing the first OPTION triggers single SELECT selection reset algorithm, and the second OPTION will be selected.

Comment 5 by tkent@chromium.org, May 30 2016

Summary: Moving OPTIONs from a single SELECT to a multiple SELECT selects everything (was: Multi select drop-down not working properly)

Sign in to add a comment