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

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

Issue 144713007: Spinner elements not to dispatch change event on hover (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: SpinButton change event trigger Created 6 years, 10 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/TextFieldInputType.cpp
diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
index b7dc5cd7e552b05095da7e1d128631cfdd62a193..343720f9cad58ee8ab0821ea0f9b7019e217cb8b 100644
--- a/Source/core/html/forms/TextFieldInputType.cpp
+++ b/Source/core/html/forms/TextFieldInputType.cpp
@@ -186,7 +186,7 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange
break;
}
- if (!input->focused())
+ if (eventBehavior == DispatchNoEvent)
input->setTextAsOfLastFormControlChangeEvent(sanitizedValue);
}
@@ -212,7 +212,6 @@ void TextFieldInputType::handleKeydownEventForSpinButton(KeyboardEvent* event)
spinButtonStepDown();
else
return;
- element().dispatchFormControlChangeEvent();
event->setDefaultHandled();
}

Powered by Google App Engine
This is Rietveld 408576698