react-tooltip
Advanced tools
Comparing version 0.7.1 to 0.7.2
@@ -140,5 +140,2 @@ 'use strict'; | ||
targetArray = document.querySelectorAll('[data-tip][data-for="' + id + '"]'); | ||
if (targetArray.length > 0) { | ||
console.error('You have duplicate react-tooltip, tooltip id is: ' + id); | ||
} | ||
} | ||
@@ -145,0 +142,0 @@ |
{ | ||
"name": "react-tooltip", | ||
"version": "0.7.1", | ||
"version": "0.7.2", | ||
"description": "react tooltip component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-tooltip.js", |
@@ -41,3 +41,3 @@ # react-tooltip | ||
##### Place: String [ top, right, bottom, left ] | ||
#### Place: String [ top, right, bottom, left ] | ||
@@ -51,3 +51,3 @@ ```js | ||
``` | ||
##### Type: String [ dark, success, warning, error, info, light ] | ||
#### Type: String [ dark, success, warning, error, info, light ] | ||
@@ -61,3 +61,3 @@ ```js | ||
``` | ||
##### Effect: String [ float, solid ] | ||
#### Effect: String [ float, solid ] | ||
@@ -72,3 +72,3 @@ ```js | ||
##### Position: Object [ top, right, bottom, left ] | ||
#### Position: Object [ top, right, bottom, left ] | ||
@@ -83,3 +83,3 @@ ```js | ||
##### Multiline: Bool [ true, false ] | ||
#### Multiline: Bool [ true, false ] | ||
@@ -94,3 +94,3 @@ ```js | ||
##### Extra Class: String | ||
#### Extra Class: String | ||
@@ -105,3 +105,3 @@ ```js | ||
##### Insert HTML | ||
#### Insert HTML | ||
@@ -119,4 +119,3 @@ ```js | ||
**Note:** | ||
##### Note: | ||
1. **data-tip** is necessary, because `<ReactTooltip />` find tooltip via this attribute | ||
@@ -128,2 +127,3 @@ 2. **data-for** correspond to the **id** of `<ReactTooltip />` | ||
`ReactTooltip.hide()` for hide the tooltip manually | ||
`ReactTooltup.rebuild()` for re-bind tooltip to the corresponding element | ||
@@ -130,0 +130,0 @@ |
@@ -99,5 +99,2 @@ 'use strict' | ||
targetArray = document.querySelectorAll('[data-tip][data-for="' + id + '"]') | ||
if (targetArray.length > 0) { | ||
console.error('You have duplicate react-tooltip, tooltip id is: ' + id) | ||
} | ||
} | ||
@@ -333,3 +330,3 @@ | ||
} | ||
for (let i = string.length - 1; i >= 0 ; i--) { | ||
for (let i = string.length - 1; i >= 0; i--) { | ||
if (string[i] !== ' ') { | ||
@@ -336,0 +333,0 @@ break |
50195
689