Framework: Combobox should have an option to select all text on click

Created on 3 Jun 2011  路  6Comments  路  Source: vaadin/framework

Originally by @jojule


This would make re-entering text much faster. Currently you have to click and then select the text before replacing it.


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

enhancement workaround

Most helpful comment

It would be very helpful to include this in the regular Combobox too, I don't want to change 100+ Combobox'es in our project to PrefixCombobox to get this functionality. Any plans on doing so?

All 6 comments

Originally by @jouni


This isn't the default behavior in normal text input elements, and present a usability issue. IMO this should be an option, or you should use a FocusListener to select the whole text (might be troublesome because of the server roundtrip).

Originally by @Artur-


IMO this requires a minimalistic new API, like setSelectTextOnClick(boolean selectTextOnClick). Default behavior the current (false) and settable if the developer wants the ComboBox to behave this way.

Originally by @Artur-


Similar to #6240 (TextField should have an option to select all text on click)

Hello there!

It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.

There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):

  • Check if the issue is still valid for the latest version. There are dozens of duplicates in our issue tracker, so it is possible that the issue is already tackled. If it appears to be fixed, close the issue, otherwise report to the issue that it is still valid.
  • Provide more details how to reproduce the issue.
  • Explain why it is important to get this issue fixed and politely draw others attention to it e.g. via the forum or social media.
  • Add a reduced test case about the issue, so it is easier for somebody to start working on a solution.
  • Try fixing the issue yourself and create a pull request that contains the test case and/or a fix for it. Handling the pull requests is the top priority for the core team.
  • If the issue is clearly a bug, use the Warranty in your Vaadin subscription to raise its priority.

Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!

With Vaadin 8 it is possible to use https://vaadin.com/directory/component/prefixcombobox which has this feature.

It would be very helpful to include this in the regular Combobox too, I don't want to change 100+ Combobox'es in our project to PrefixCombobox to get this functionality. Any plans on doing so?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RobertZenz picture RobertZenz  路  6Comments

lanmaster picture lanmaster  路  3Comments

Artur- picture Artur-  路  6Comments

jbreitung picture jbreitung  路  6Comments

vaadin-bot picture vaadin-bot  路  7Comments