Index: Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
diff --git a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
index c0243960e3415a3863d75b044be52143798c9c83..8771e9f8a5e5a451c71bd670ab401e8ab0e4ada4 100644 |
--- a/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
+++ b/Source/core/html/forms/BaseMultipleFieldsDateAndTimeInputType.cpp |
@@ -187,7 +187,6 @@ void BaseMultipleFieldsDateAndTimeInputType::editControlValueChanged() |
input->setValueInternal(newValue, DispatchNoEvent); |
input->setNeedsStyleRecalc(); |
input->dispatchFormControlInputEvent(); |
- input->dispatchFormControlChangeEvent(); |
} |
input->notifyFormStateChanged(); |
input->updateClearButtonVisibility(); |
@@ -264,6 +263,7 @@ void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(const St |
unsigned end; |
if (date.parseDate(value, 0, end) && end == value.length()) |
edit->setOnlyYearMonthDay(date); |
+ element().dispatchFormControlChangeEvent(); |
} |
void BaseMultipleFieldsDateAndTimeInputType::pickerIndicatorChooseValue(double value) |
@@ -448,6 +448,11 @@ AtomicString BaseMultipleFieldsDateAndTimeInputType::localeIdentifier() const |
return element().computeInheritedLanguage(); |
} |
+void BaseMultipleFieldsDateAndTimeInputType::editControlDidChangeValueByKeyboard() |
+{ |
+ element().dispatchFormControlChangeEvent(); |
+} |
+ |
void BaseMultipleFieldsDateAndTimeInputType::minOrMaxAttributeChanged() |
{ |
updateView(); |