Skip to content

Commit

Permalink
docs: add issue with closeEvents to troubleshooting
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljablonski committed Apr 13, 2024
1 parent 613e0e0 commit c7f865f
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/docs/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,24 @@ or
}
```

### The tooltip doesn't close when using `closeEvents={{ click: true }}`

Some HTML elements, such as the `<svg>`, can sometimes capture click events and not propagate them. If your anchor element contains an `<svg>` element, try setting `pointer-events: none;` on it.

```jsx
<button data-tooltip-id="...">
<svg className="my-svg">
...
</svg>
</button>
```

```css
.my-svg {
pointer-events: none;
}
```

## The border doesn't show for the arrow

Simply setting the border for the tooltip through CSS will not work for the arrow.
Expand Down

0 comments on commit c7f865f

Please sign in to comment.