Skip to content

Commit 193b3b4

Browse files
docs: switch to mouseover and mouseout as default events
1 parent f85c6d8 commit 193b3b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/docs/options.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@ import { Tooltip } from 'react-tooltip';
116116
| ~~`closeOnEsc`~~ | ~~`boolean`~~ | ~~no~~ | ~~`false`~~ | ~~`true` `false`~~ | ~~Pressing escape key will close the tooltip~~ <br/>**DEPRECATED**<br/>Use `globalCloseEvents` instead. |
117117
| ~~`closeOnScroll`~~ | ~~`boolean`~~ | ~~no~~ | ~~`false`~~ | ~~`true` `false`~~ | ~~Scrolling will close the tooltip~~ <br/>**DEPRECATED**<br/>Use `globalCloseEvents` instead. |
118118
| ~~`closeOnResize`~~ | ~~`boolean`~~ | ~~no~~ | ~~`false`~~ | ~~`true` `false`~~ | ~~Resizing the window will close the tooltip~~ <br/>**DEPRECATED**<br/>Use `globalCloseEvents` instead. |
119-
| `openEvents` | `Record<string, boolean>` | no | `mouseenter` `focus` `mouseover` | `mouseenter` `focus` `mouseover` `click` `dblclick` `mousedown` | Events to be listened on the anchor elements to open the tooltip |
120-
| `closeEvents` | `Record<string, boolean>` | no | `mouseleave` `blur` `mouseout` | `mouseleave` `blur` `mouseout` `click` `dblclick` `mouseup` | Events to be listened on the anchor elements to close the tooltip |
119+
| `openEvents` | `Record<string, boolean>` | no | `mouseover` `focus` | `mouseover` `focus` `mouseenter` `click` `dblclick` `mousedown` | Events to be listened on the anchor elements to open the tooltip |
120+
| `closeEvents` | `Record<string, boolean>` | no | `mouseout` `blur` | `mouseout` `blur` `mouseleave` `click` `dblclick` `mouseup` | Events to be listened on the anchor elements to close the tooltip |
121121
| `globalCloseEvents` | `Record<string, boolean>` | no | | `escape` `scroll` `resize` `clickOutsideAnchor` | Global events to be listened to close the tooltip (`escape` closes on pressing `ESC`, `clickOutsideAnchor` is useful with click events on `openEvents`) |
122122
| `imperativeModeOnly` | `boolean` | no | `false` | `true` `false` | When enabled, default tooltip behavior is disabled. Check [the examples](./examples/imperative-mode.mdx) for more details |
123123
| `style` | `CSSProperties` | no | | a CSS style object | Add inline styles directly to the tooltip |

0 commit comments

Comments
 (0)