-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
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
});
});
Metadata
Metadata
Assignees
Labels
No labels