Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index 77585bfd9bca30d165811d9dd4236d94547a6849..5af0ae9c1949b2a7132321c096a6e4d21499589a 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -1338,6 +1338,9 @@ void HTMLSelectElement::listBoxDefaultEventHandler(Event* event) |
event->setDefaultHandled(); |
} |
} else if (event->type() == eventNames().mouseupEvent && event->isMouseEvent() && static_cast<MouseEvent*>(event)->button() == LeftButton && document()->frame()->eventHandler()->autoscrollRenderer() != renderer()) { |
+ // We didn't start this click/drag on any options. |
+ if (m_lastOnChangeSelection.isEmpty()) |
+ return; |
// This makes sure we fire dispatchFormControlChangeEvent for a single |
// click. For drag selection, onChange will fire when the autoscroll |
// timer stops. |