18
Views
4
Comments
Solved
Button disabled with title attribute
Question

Why I have a Button that is disabled. "Enabled = False", in the interface, when I put the cursor over it, the title attribute that I am indicating does not appear? How should I do it so that the 'title' that I want to give it appears but leaving the button disabled?

Solution

Yeah, put on your theme, based on Pedro Marques's answer this style

.btn[disabled] {

pointer-events: auto;

}

Let us know if that works

Kind Regards,

Márcio

pointer-events  doesn't let you have any interaction with the button, that's why, pointer-events is used to disable the button

So there is no way to show a title above a disabled button? i would need it to indicate in that title what to do to enable that button. Thanks!

Solution

Yeah, put on your theme, based on Pedro Marques's answer this style

.btn[disabled] {

pointer-events: auto;

}

Let us know if that works

Kind Regards,

Márcio

Hi Mario,

You can try to add the css "pointer-events: auto;" to your button.

Check this stack overflow post for more detail (https://stackoverflow.com/questions/2151575/how-do-you-render-tooltip-on-disabled-html-button)

Best regards,

Pedro

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.