<select> element isn't updated after its single option removing.
Reported by
alexande...@gmail.com,
Sep 25 2016
|
||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 Example URL: https://jsfiddle.net/AlexLukin/zd3ufoaj/1/ Steps to reproduce the problem: 1. Go this JSFillde https://jsfiddle.net/AlexLukin/zd3ufoaj/1/ 2. Click on the "Remove option" link. 3. What is the expected behavior? After removing <option> <select> element should be immediately updated and its label "text" should vanish. What went wrong? <option> #o is actually removed from <select> element after clicking on #a link, but label "text" from removed option is preserved in the <select> element. Does it occur on multiple sites: Yes Is it a problem with a plugin? No Did this work before? N/A Does this work in other browsers? Yes Chrome version: 53.0.2785.116 Channel: stable OS Version: 10.0 Flash Version: Shockwave Flash 23.0 r0
,
Sep 26 2016
Rperoduced without min-width.
,
Sep 26 2016
I'm interested in this issue
,
Sep 28 2016
,
Sep 29 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/238fff24c2c0dbcc3cec19a6a981b74d11928092 commit 238fff24c2c0dbcc3cec19a6a981b74d11928092 Author: jhwon0415 <jhwon0415@gmail.com> Date: Thu Sep 29 03:13:14 2016 fixed <select> element isn't updated after its single option removing. This problem is occurred because, in resetToDefaultSelection, there was no handling when firstEnabledOption and lastSelectedOption are both nullptr. So added this case. BUG= 650093 Review-Url: https://codereview.chromium.org/2372913002 Cr-Commit-Position: refs/heads/master@{#421733} [modify] https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092/AUTHORS [add] https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single-expected.html [add] https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092/third_party/WebKit/LayoutTests/fast/forms/select/select-remove-option-single.html [modify] https://crrev.com/238fff24c2c0dbcc3cec19a6a981b74d11928092/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
,
Sep 29 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by kojii@chromium.org
, Sep 26 2016Status: Untriaged (was: Unconfirmed)