Vaadin 14 setCursorPosition in TextField


I found an old Vaadin 8 script where we could set the cursor position in a textfield manually. I was wondering if that functionality still exists under a new name in Vaadin 14?

final TextField textfield = new TextField();
textfield.setValue("my string something something");

It’s a missing feature. Here’s a ticket; the discussion also contains a workaround: