| Index: third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| index a2cca350f1509490173efa3c80d9cf4fb101e60e..214383c51b858d77499cb1c23072ba91aac1e185 100644
|
| --- a/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| +++ b/third_party/WebKit/Source/core/html/HTMLSelectElement.cpp
|
| @@ -1192,6 +1192,10 @@ void HTMLSelectElement::dispatchBlurEvent(Element* newFocusedElement, WebFocusTy
|
|
|
| void HTMLSelectElement::deselectItemsWithoutValidation(HTMLElement* excludeElement)
|
| {
|
| + if (!multiple() && usesMenuList() && m_lastOnChangeOption && m_lastOnChangeOption != excludeElement) {
|
| + m_lastOnChangeOption->setSelectedState(false);
|
| + return;
|
| + }
|
| for (auto& element : listItems()) {
|
| if (element != excludeElement && isHTMLOptionElement(*element))
|
| toHTMLOptionElement(element)->setSelectedState(false);
|
|
|