Skip to content

Commit

Permalink
Tooltip: set empty triggerActiveClass; fix #7
Browse files Browse the repository at this point in the history
  • Loading branch information
vrimar committed Jun 23, 2022
1 parent b138c48 commit 0e1159b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/tooltip/examples/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import m from 'mithril';
import { Tooltip, PopoverPosition, Size, Switch } from '@/';
import { Tooltip, PopoverPosition, Size, Switch, Button } from '@/';
import { Example, PopoverPositionSelect, SizeSelect } from '@shared/examples';

const EXAMPLE_SRC = 'components/tooltip/examples/index.ts';
Expand All @@ -16,7 +16,9 @@ export class TooltipExample {
position: this.position,
hasArrow: this.hasArrow,
size: this.size,
trigger: m('span', 'Tooltip hover text')
trigger: m(Button, {
label: 'Hover me'
})
})
]);
}
Expand Down
1 change: 1 addition & 0 deletions src/components/tooltip/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export class Tooltip implements m.Component<ITooltipAttrs> {

return m(Popover, {
addToStack: false,
triggerActiveClass: '',
...otherAttrs as IPopoverAttrs,
class: classes,
interactionType: 'hover-trigger'
Expand Down

0 comments on commit 0e1159b

Please sign in to comment.