We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a grid pro, with an editable column containing text. When the user starts entering a text, e.g. 'myText', the following happens:
I am not sure when this was introduced, but I am pretty sure that the behaviour was as my expected outcome in the past.
Do not select all content when the editor is activated by a key that already changed the input.
@Route(value = "test") public class TestView extends VerticalLayout { public TestView() { setSizeFull(); GridPro<TestData> grid = new GridPro<>(200); grid.setSizeFull(); grid.getDataCommunicator().setPagingEnabled(false); grid.setEnterNextRow(true); grid.setMultiSort(true, Grid.MultiSortPriority.APPEND, true); grid.addColumn(TestData::getId) .setFlexGrow(0) .setHeader("ID"); grid.addEditColumn(TestData::getValue) .text(TestData::setValue) .setHeader("Value (Editable)"); grid.setItems(IntStream.range(1, 20) .mapToObj(i -> new TestData(i, "Data_" + i)) .collect(Collectors.toList())); add(grid); } public static class TestData { private final int id; private String value; public TestData(int id, String value) { this.id = id; this.value = value; } public int getId() { return id; } public String getValue() { return value; } public void setValue(String value) { this.value = value; } }
Use the code above and edit a value in the value column as described in my bug description above.
Vaadin version(s): 24.3.3 and above OS:
Issue is not browser related
The text was updated successfully, but these errors were encountered:
It's a regression from:
Specifically the duplicate focusEditor call done here with a delay: https://github.com/vaadin/web-components/blob/761d2e47235001fbcb6ed3dafe6a4ea47b4d794e/packages/grid-pro/src/vaadin-grid-pro-edit-column-mixin.js#L270-L271
focusEditor
Sorry, something went wrong.
ugur-vaadin
Successfully merging a pull request may close this issue.
Description
I have a grid pro, with an editable column containing text.
When the user starts entering a text, e.g. 'myText', the following happens:
I am not sure when this was introduced, but I am pretty sure that the behaviour was as my expected outcome in the past.
Expected outcome
Do not select all content when the editor is activated by a key that already changed the input.
Minimal reproducible example
Steps to reproduce
Use the code above and edit a value in the value column as described in my bug description above.
Environment
Vaadin version(s): 24.3.3 and above
OS:
Browsers
Issue is not browser related
The text was updated successfully, but these errors were encountered: