| Index: Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| diff --git a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| index 21d39a3312da26d7f03785b02abb83a62d036d86..c7a9aa5380c53cf980d68e72d8d58c3b3bb37915 100644
|
| --- a/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| +++ b/Source/core/html/forms/BaseChooserOnlyDateAndTimeInputType.cpp
|
| @@ -97,6 +97,14 @@ void BaseChooserOnlyDateAndTimeInputType::didChooseValue(const String& value)
|
| element().setValue(value, DispatchInputAndChangeEvent);
|
| }
|
|
|
| +void BaseChooserOnlyDateAndTimeInputType::didChooseValue(double value)
|
| +{
|
| + if (std::isnan(value))
|
| + element().setValue(emptyString(), DispatchInputAndChangeEvent);
|
| + else
|
| + element().setValueAsNumber(value, ASSERT_NO_EXCEPTION, DispatchInputAndChangeEvent);
|
| +}
|
| +
|
| void BaseChooserOnlyDateAndTimeInputType::didEndChooser()
|
| {
|
| m_dateTimeChooser.clear();
|
|
|