Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 906812120075f2065568cbede9200c54123b4cd9..0d7495826c6d64af6e83dca19fb96ec5c0f4674b 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) |