Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 371c14303d801521fb4d498053b744e261d0674d..dd25e28343f8b3fd8d111e243dbe765ae49e5cde 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -914,6 +914,8 @@ void HTMLSelectElement::optionRemoved(const HTMLOptionElement& option) |
m_activeSelectionAnchorIndex--; |
if (listIndex <= m_activeSelectionEndIndex) |
m_activeSelectionEndIndex--; |
+ if (listIndex == selectedIndex()) |
+ setAutofilled(false); |
} |
void HTMLSelectElement::selectOption(int optionIndex, SelectOptionFlags flags) |