summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorTeemu Pöntelin <tehapo@gmail.com>2016-04-30 16:20:35 +0300
committerVaadin Code Review <review@vaadin.com>2016-05-11 10:02:30 +0000
commitaa2cdc96ec1df19ab8b1d8a9b616d76f18abe0c7 (patch)
tree916635b4fd8551408960b4ad13314cedc4ff8196 /client
parent790b9cbada28b972f3c1dabc0ebe65d4af380e58 (diff)
downloadvaadin-framework-aa2cdc96ec1df19ab8b1d8a9b616d76f18abe0c7.tar.gz
vaadin-framework-aa2cdc96ec1df19ab8b1d8a9b616d76f18abe0c7.zip
Always return cursor position 0 when displaying input prompt (#19766)
Change-Id: Ibca58259a0bbcda7141b996020bae8614f0c2114
Diffstat (limited to 'client')
-rw-r--r--client/src/main/java/com/vaadin/client/ui/VTextField.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/src/main/java/com/vaadin/client/ui/VTextField.java b/client/src/main/java/com/vaadin/client/ui/VTextField.java
index 1554bd1a22..1268b8a078 100644
--- a/client/src/main/java/com/vaadin/client/ui/VTextField.java
+++ b/client/src/main/java/com/vaadin/client/ui/VTextField.java
@@ -423,7 +423,7 @@ public class VTextField extends TextBoxBase implements Field, ChangeHandler,
*/
protected boolean updateCursorPosition() {
if (WidgetUtil.isAttachedAndDisplayed(this)) {
- int cursorPos = getCursorPos();
+ int cursorPos = prompting ? 0 : getCursorPos();
if (lastCursorPos != cursorPos) {
client.updateVariable(paintableId,
TextFieldConstants.VAR_CURSOR, cursorPos, false);