Skip to content

[button] tooltipsText is plain text only and is not displayed if isEnabled = false #712

Closed
@pleku

Description

@pleku

@vlipovetskii commented on Thu Jun 13 2019

I leverage this code
var HasElement.tooltipsText: String? get() = element.getProperty("title") set(value) { element.setProperty("title", value) }
to set tooltipsText for the components e.g. button.
I want to explain why a button is disabled.
Unfortunately, tooltipsText is not displayed if the component (e.g. button) is disabled.

Please find the sample project https://github.com/vlipovetskii/vaadin-issue-0003-prj
and
screenshot

disabled component-tooltips are not displayed


@pleku commented on Mon Jun 17 2019

It seems that the native button indeed shows the tooltip when disabled https://jsfiddle.net/pqx1cgsm/

If our Button / <vaadin-button> works differently, then this issue should be in that particular component repository.

@vlipovetskii what components are you not seeing the tooltip in when using setEnabled(false) from Flow ?


@vlipovetskii commented on Mon Jun 17 2019

This is Button / . How to move the issue to Button repository ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions