vaadin / vaadin/framework

ComboBox placeholder not visible

Open
#11,837 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The ComboBox does not show the placeholder when it's in read-only/disabled state (See here).
This behavior is kinda inconsistent as the TextField does show the placeholder when it's in readonly/disabled state (See here).

Expected behavior
The ComboBox should also show the placeholder when it's in read-only/disabled state.

Vaadin Framework version
8.8.x

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 with client/src/main/java/com/vaadin/client/ui/VComboBox.java at the placeholder handling around line 2040, then compare it with client/src/main/java/com/vaadin/client/ui/VTextField.java around line 59. Verify that a ComboBox displays its placeholder while read-only or disabled, matching the stated TextField behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.