vaadin / vaadin/framework

Grid and cell content validation

Open
#8,109 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement workaround
Dominant language
Java
Stars
1.8k
Forks
717
Avg merge
2d 6h
Merged PRs (30d)
3

Description

Hi all,

When using the Grid in edit mode, the cell content validation is triggered when the cell editor field is blurred. The problem is when the cell content is not valid according to the cell validation strategy, the user is obliged to go back to the faulty cell to edit it again. It would be nicer that the editor field is blurred only when the cell content is valid. Otherwise, the editor field keep its focus and we do not allow blur event until the cell content is valid.
Best regards

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Grid edit-mode cell editor and its cell-content validation handling, then reproduce the blur behavior with an invalid value. Done means an invalid cell keeps the editor focused and prevents blur until the content is valid; verify both invalid and valid editing paths with the relevant Grid tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.