Skip to content
New issue

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

V23.3: Tooltip does not show up when the component is disabled #4393

Closed
taefi opened this issue Dec 18, 2022 · 2 comments
Closed

V23.3: Tooltip does not show up when the component is disabled #4393

taefi opened this issue Dec 18, 2022 · 2 comments

Comments

@taefi
Copy link
Contributor

taefi commented Dec 18, 2022

Description

I have added some buttons to a view and I set the tooltip for them. The tooltip works nicely while the buttons are enabled. However, hovering the mouse on them is not triggering the tooltip overlay to show up when they have setEnabled(false).

Expected outcome

Since the tooltips are readonly texts, I would expect them to show up on almost any components as long as the user can see them on the page, no matter if they are disabled or not. In fact, in many cases I get requests from customers to add tooltips especially on disabled buttons to provide the reason being disabled to the user, e.g. some status of the data, or lack of having enough permissions, etc.

Minimal reproducible example

Button enabledButton = new Button("Hover for tooltip");
enabledButton.setTooltipText("Tooltip works fine!");

Button disabledButton = new Button("Hover for tooltip");
disabledButton.setTooltipText("Tooltip show work on disabled components!");

Steps to reproduce

The above snippet code with two buttons shows the issue.

Environment

Vaadin version(s): 23.3.0

Browsers

Chrome, Firefox

@web-padawan
Copy link
Member

This is a known limitation and not a bug. Currently, disabled components are not focusable and do not handle mouse / touch events. We might reconsider that in the future, see vaadin/web-components#4585.

@rolfsmeds
Copy link
Contributor

Closing in favor of vaadin/web-components#4585

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants