| Index: Source/core/html/forms/TextFieldInputType.cpp
|
| diff --git a/Source/core/html/forms/TextFieldInputType.cpp b/Source/core/html/forms/TextFieldInputType.cpp
|
| index 1bc9e7bab0445c155d7c11c733a9bb0caf643f76..a81e325deb03ccf18c0129563babc8bf3aea6d06 100644
|
| --- a/Source/core/html/forms/TextFieldInputType.cpp
|
| +++ b/Source/core/html/forms/TextFieldInputType.cpp
|
| @@ -163,7 +163,7 @@ void TextFieldInputType::setValue(const String& sanitizedValue, bool valueChange
|
| if (input->focused())
|
| input->setSelectionRange(max, max);
|
| else
|
| - input->cacheSelectionInResponseToSetValue(max);
|
| + input->setSelectionRange(input->selectionStartForJavascriptBindings(), input->selectionEndForJavascriptBindings());
|
|
|
| if (!valueChanged)
|
| return;
|
|
|