vaadin / vaadin/framework

Selection issue for only Spaces in Treen node name

Open
#7,894 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Originally by vinodvaadin


Hi Team,

Just having spaces in the tree node name, does not allow selection of such a tree node.

The issue is seen when a tree node having a regular name is renamed to a name that only has spaces e.g - " ". Once tree node has only spaces, it does not get selected.

Below is a sample example of a Tree where root is "Book" and its children are "Novel", "Fiction", "Animation", and "Games"

Book

  • "Novel"
  • "Fiction"
  • "Animation"
  • "Games"

Over here if we rename the 2nd children "Fiction" to " ". Selection on the 2nd node does not work.

Book

  • "Novel"
  • " "
  • "Animation"
  • "Games"

Imported from https://dev.vaadin.com/ issue #20430

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

Reproduce the issue by renaming a tree node to a value containing only spaces, then attempting to select it. Trace the tree node rename and selection entry points; done means a whitespace-only node can be selected consistently, matching nodes with regular names.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
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.