| Index: Source/core/html/HTMLInputElement.cpp
|
| diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp
|
| index cf8ff23e6d3f33d0beaf50c0b7278d4f12b00381..8e19987bce428357cf4d2349b2622a4a4276b0ec 100644
|
| --- a/Source/core/html/HTMLInputElement.cpp
|
| +++ b/Source/core/html/HTMLInputElement.cpp
|
| @@ -1831,7 +1831,7 @@ bool HTMLInputElement::setupDateTimeChooserParameters(DateTimeChooserParameters&
|
| }
|
|
|
| parameters.anchorRectInRootView = document().view()->contentsToRootView(pixelSnappedBoundingBox());
|
| - parameters.currentValue = value();
|
| + parameters.currentValue = m_inputType->valueAsDouble();
|
| parameters.isAnchorElementRTL = computedStyle()->direction() == RTL;
|
| if (RuntimeEnabledFeatures::dataListElementEnabled()) {
|
| if (HTMLDataListElement* dataList = this->dataList()) {
|
| @@ -1839,9 +1839,11 @@ bool HTMLInputElement::setupDateTimeChooserParameters(DateTimeChooserParameters&
|
| for (unsigned i = 0; HTMLOptionElement* option = toHTMLOptionElement(options->item(i)); ++i) {
|
| if (!isValidValue(option->value()))
|
| continue;
|
| - parameters.suggestionValues.append(sanitizeValue(option->value()));
|
| - parameters.localizedSuggestionValues.append(localizeValue(option->value()));
|
| - parameters.suggestionLabels.append(option->value() == option->label() ? String() : option->label());
|
| + DateTimeSuggestion suggestion;
|
| + suggestion.value = m_inputType->parseToNumber(option->value(), -1).toDouble();
|
| + suggestion.localizedValue = localizeValue(option->value());
|
| + suggestion.label = option->value() == option->label() ? String() : option->label();
|
| + parameters.suggestions.append(suggestion);
|
| }
|
| }
|
| }
|
|
|