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
UiButton tooltip when disabled #469
Comments
The tooltip doesn't show up because the root node of UiButton is a The workaround is to wrap your UiButton in another element and let that be the tooltip toggle. But I'm having issues with this when using tooltip with |
you can use a <button title="I still work when disabled" disabled>Button Text</button> |
That's not really what I wanted as I wanted to keep the UI |
I was just using "button" as a placeholder for whatever you ended up naming your component. import UiButton from 'keen-ui/lib/UiButton';
Vue.component('ui-button', UiButton); <template>
<ui-button
color="primary"
title="I still work when disabled"
type="primary"
disabled>
Button Text
</ui-button>
</template> |
What we're after is to keep the UiTooltip as well. Does applying `title` do
that?
pt., 20 mar 2020, 00:56 użytkownik sysebert <notifications@github.com>
napisał:
… I was just using "button" as a placeholder for whatever you ended up
naming your component.
import UiButton from 'keen-ui/lib/UiButton';
Vue.component('ui-button', UiButton);
<template>
<ui-button
color="primary"
title="I still work when disabled"
type="primary"
disabled>
Button Text
</ui-button>
</template>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#469 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AE6ZWLQMED6MGTV2C763363RIKWLVANCNFSM4I3N3HIQ>
.
|
I noticed that the tooltip is only working when the button is not disabled? What's the reason behind this?
My save button is disabled until the form is valid, but I would like to display a tooltip saying something about this.
If there's a good reason not to have the tooltip, I don't want to propose a PR
The text was updated successfully, but these errors were encountered: