Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 2a353bb472d393b91cb46404208258329310b9c8..94b52ccff26e9496227f6f4092eb0aa47477a1c9 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) |