From 5c15638e939914bfdb47f737ae0ee2df0c2f9228 Mon Sep 17 00:00:00 2001 From: hermanlyx Date: Tue, 11 Jul 2023 17:46:18 +0800 Subject: [PATCH] fix: wrongly name closeOnResize option on docs --- docs/docs/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/docs/options.mdx b/docs/docs/options.mdx index ca676fe3..0e749f9f 100644 --- a/docs/docs/options.mdx +++ b/docs/docs/options.mdx @@ -113,7 +113,7 @@ import { Tooltip } from 'react-tooltip'; | `clickable` | `boolean` | no | `false` | `true` `false` | Allow interaction with elements inside the tooltip. Useful when using buttons and inputs | | `closeOnEsc` | `boolean` | no | `false` | `true` `false` | Pressing escape key will close the tooltip | | `closeOnScroll` | `boolean` | no | `false` | `true` `false` | Scrolling will close the tooltip (for this to work, scroll element must be either the root html tag, the tooltip parent, or the anchor parent) | -| `closeOnEsc` | `boolean` | no | `false` | `true` `false` | Resizing the window will close the tooltip | +| `closeOnResize` | `boolean` | no | `false` | `true` `false` | Resizing the window will close the tooltip | | `style` | `CSSProperties` | no | | a CSS style object | Add inline styles directly to the tooltip | | `position` | `{ x: number; y: number }` | no | | any `number` value for both `x` and `y` | Override the tooltip position on the DOM | | `isOpen` | `boolean` | no | handled by internal state | `true` `false` | The tooltip can be controlled or uncontrolled, this attribute can be used to handle show and hide tooltip outside tooltip (can be used **without** `setIsOpen`) |