Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(655)

Unified Diff: Source/core/html/HTMLSelectElement.cpp

Issue 14931006: Disabled select element should not fire onchange event. When dragging a disabled select element it … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/fast/forms/select/listbox-disabled-scroll-no-onchange-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLSelectElement.cpp
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp
index 10471bf832a6bdeecfb2defad73f4edfb0975045..be5809097743aa56c37a5fa237e03442f7cd7b30 100644
--- a/Source/core/html/HTMLSelectElement.cpp
+++ b/Source/core/html/HTMLSelectElement.cpp
@@ -636,6 +636,8 @@ void HTMLSelectElement::updateListBoxSelection(bool deselectOtherOptions)
void HTMLSelectElement::listBoxOnChange()
{
ASSERT(!usesMenuList() || m_multiple);
+ if (isDisabledFormControl())
+ return;
const Vector<HTMLElement*>& items = listItems();
« no previous file with comments | « LayoutTests/fast/forms/select/listbox-disabled-scroll-no-onchange-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698