Skip to content

Commit

Permalink
[Tooltip] allow HOVER interactions (#3291)
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgray authored Jan 18, 2019
1 parent 8113bb5 commit d9626d7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/core/src/components/tooltip/tooltip.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ export interface ITooltipProps extends IPopoverSharedProps, IIntentProps {
*/
hoverOpenDelay?: number;

/**
* The kind of hover interaction that triggers the display of the tooltip.
* Tooltips do not support click interactions.
* @default PopoverInteractionKind.HOVER_TARGET_ONLY
*/
interactionKind?: typeof PopoverInteractionKind.HOVER | typeof PopoverInteractionKind.HOVER_TARGET_ONLY;

/**
* Indicates how long (in milliseconds) the tooltip's appear/disappear
* transition takes. This is used by React `CSSTransition` to know when a
Expand Down Expand Up @@ -62,11 +69,11 @@ export class Tooltip extends React.PureComponent<ITooltipProps, {}> {

return (
<Popover
interactionKind={PopoverInteractionKind.HOVER_TARGET_ONLY}
{...restProps}
autoFocus={false}
canEscapeKeyClose={false}
enforceFocus={false}
interactionKind={PopoverInteractionKind.HOVER_TARGET_ONLY}
lazy={true}
popoverClassName={classes}
portalContainer={this.props.portalContainer}
Expand Down

1 comment on commit d9626d7

@blueprint-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Tooltip] allow HOVER interactions (#3291)

Previews: documentation | landing | table

Please sign in to comment.