Skip to content

Custom Tooltip not showing up in v2.7.0 #32

Description

@helen-tan

version 2.7.0

Not sure if this is a bug or if I'm doing something wrong, but custom tooltips no longer show up on hover of a task after bumping @svar-ui/react-gantt to v2.7.0.

In my branch, I made a very simple custom tooltip to test:

type MyTooltipContentProps = { api: IApi; data: TooltipContentData };

function MyTooltipContent(props: MyTooltipContentProps) {
  const { api, data } = props;
  return <div>Hello</div>;
}
export default MyTooltipContent;

which is invoked like this:`

<Tooltip api={ganttApi} content={MyTooltipContent}>
    <Gantt init={init} tasks={tasks} links={links} scales={scales} columns={columns} />
 </Tooltip>

The online demo for Tooltips isn't showing any tooltips on hover of a task as well, which led me to wonder if this is a bug.
https://docs.svar.dev/react/gantt/samples/#/tooltips/willow

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions