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

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

Issue 255163002: Dispatch change event for input type=checkbox when checked but value is null (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added tests for Radio to check onchange event trigger Created 6 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
Index: Source/core/html/forms/RadioInputType.cpp
diff --git a/Source/core/html/forms/RadioInputType.cpp b/Source/core/html/forms/RadioInputType.cpp
index 7a90d2fad679dac692fdd4db8b4f66e48e19cef3..cc5a05ecd678ccabea009fba44730906fa74454a 100644
--- a/Source/core/html/forms/RadioInputType.cpp
+++ b/Source/core/html/forms/RadioInputType.cpp
@@ -191,4 +191,9 @@ bool RadioInputType::supportsIndeterminateAppearance() const
return false;
}
+bool RadioInputType::shouldDispatchFormControlChangeEvent(String& oldValue, String& newValue)
+{
+ return oldValue != newValue;
+}
+
} // namespace WebCore
« Source/core/html/forms/CheckboxInputType.h ('K') | « Source/core/html/forms/RadioInputType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698