We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Disabling a button with a tooltip shown does not remove the tooltip. Tested with Chrome on Mac OS X.
const { Button, FocusManager, Tooltip, } = CUI; FocusManager.showFocusOnlyOnTab(); const TooltipDisablingButton = () => { let buttonDisabled = false; return { view: () => { return m(Tooltip, { content: 'Tooltip remains after button disabled', trigger: m(Button, { label: 'Click to disable', disabled: buttonDisabled, onclick: () => { buttonDisabled = true; }, }) }); }, }; }; document.addEventListener('DOMContentLoaded', () => { m.route(document.body, '/', { '/': TooltipDisablingButton }); });
The text was updated successfully, but these errors were encountered:
I'm going to rework the Tooltip logic, seems like it has quite a few issues I didn't consider.
Tooltip
Sorry, something went wrong.
No branches or pull requests
Disabling a button with a tooltip shown does not remove the tooltip. Tested with Chrome on Mac OS X.
The text was updated successfully, but these errors were encountered: