Skip to content

[text-field] Deleting text in text-area makes scrollbar jump #1184

Open
@ropoman

Description

@ropoman

Description

Paste a longer text into the text area so that the browser shows a scrollbar and is not at the top position. Now delete some text in the textarea and the browser scrollbar jumps up and the user has lost the current editing position

Steps to reproduce

<vaadin.version>14.1.17</vaadin.version>

@route(value = "test")
@uiscope
public class Test extends VerticalLayout {
@PostConstruct
public void init() {
setSizeFull();
TextArea a = new TextArea();
add(a);
}
}

Then paste a longer text into the text area so that the browser shows a scrollbar and is not at the top position. Now delete some text in the textarea and the browser scrollbar jumps up and the user has lost the current editing position

Browsers Affected

Problem occurs in Firefox and Edge. Chrome seems to work

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions