Skip to content

Commit 0e1159b

Browse files
committed
Tooltip: set empty triggerActiveClass; fix vrimar#7
1 parent b138c48 commit 0e1159b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

src/components/tooltip/examples/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import m from 'mithril';
2-
import { Tooltip, PopoverPosition, Size, Switch } from '@/';
2+
import { Tooltip, PopoverPosition, Size, Switch, Button } from '@/';
33
import { Example, PopoverPositionSelect, SizeSelect } from '@shared/examples';
44

55
const EXAMPLE_SRC = 'components/tooltip/examples/index.ts';
@@ -16,7 +16,9 @@ export class TooltipExample {
1616
position: this.position,
1717
hasArrow: this.hasArrow,
1818
size: this.size,
19-
trigger: m('span', 'Tooltip hover text')
19+
trigger: m(Button, {
20+
label: 'Hover me'
21+
})
2022
})
2123
]);
2224
}

src/components/tooltip/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class Tooltip implements m.Component<ITooltipAttrs> {
4747

4848
return m(Popover, {
4949
addToStack: false,
50+
triggerActiveClass: '',
5051
...otherAttrs as IPopoverAttrs,
5152
class: classes,
5253
interactionType: 'hover-trigger'

0 commit comments

Comments
 (0)