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

Unified Diff: Source/core/html/forms/RadioInputType.cpp

Issue 842153002: Click event should be fired before change events for checkbox and radio button. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 | « Source/core/html/forms/CheckboxInputType.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/forms/RadioInputType.cpp
diff --git a/Source/core/html/forms/RadioInputType.cpp b/Source/core/html/forms/RadioInputType.cpp
index 9731b11292cde518ac937c291681d61816058981..41842b0616262583f5ceb24b30f58849a62801a3 100644
--- a/Source/core/html/forms/RadioInputType.cpp
+++ b/Source/core/html/forms/RadioInputType.cpp
@@ -196,6 +196,8 @@ void RadioInputType::didDispatchClick(Event* event, const ClickHandlingState& st
&& checkedRadioButton->form() == element().form()
&& checkedRadioButton->name() == element().name())
checkedRadioButton->setChecked(true);
+ } else {
+ element().dispatchChangeEventIfNeeded();
}
// The work we did in willDispatchClick was default handling.
« no previous file with comments | « Source/core/html/forms/CheckboxInputType.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698