react-tooltip
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -39,6 +39,6 @@ 'use strict'; | ||
this.setState({ | ||
placeholder: e.target.dataset.tip, | ||
place: e.target.dataset.place ? e.target.dataset.place : this.props.place ? this.props.place : 'top', | ||
type: e.target.dataset.type ? e.target.dataset.type : this.props.type ? this.props.type : 'dark', | ||
effect: e.target.dataset.effect ? e.target.dataset.effect : this.props.effect ? this.props.effect : 'float' }); | ||
placeholder: e.target.getAttribute('data-tip'), | ||
place: e.target.getAttribute('data-place') ? e.target.getAttribute('data-place') : this.props.place ? this.props.place : 'top', | ||
type: e.target.getAttribute('data-type') ? e.target.getAttribute('data-type') : this.props.type ? this.props.type : 'dark', | ||
effect: e.target.getAttribute('data-effect') ? e.target.getAttribute('data-effect') : this.props.effect ? this.props.effect : 'float' }); | ||
this.updateTooltip(e); | ||
@@ -45,0 +45,0 @@ }, |
{ | ||
"name": "react-tooltip", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "react tooltip component", | ||
@@ -5,0 +5,0 @@ "main": "dist/react-tooltip.js", |
@@ -30,6 +30,6 @@ 'use strict'; | ||
this.setState({ | ||
placeholder: e.target.dataset.tip, | ||
place: e.target.dataset.place?e.target.dataset.place:(this.props.place?this.props.place:"top"), | ||
type: e.target.dataset.type?e.target.dataset.type:(this.props.type?this.props.type:"dark"), | ||
effect: e.target.dataset.effect?e.target.dataset.effect:(this.props.effect?this.props.effect:"float"), | ||
placeholder: e.target.getAttribute("data-tip"), | ||
place: e.target.getAttribute("data-place")?e.target.getAttribute("data-place"):(this.props.place?this.props.place:"top"), | ||
type: e.target.getAttribute("data-type")?e.target.getAttribute("data-type"):(this.props.type?this.props.type:"dark"), | ||
effect: e.target.getAttribute("data-effect")?e.target.getAttribute("data-effect"):(this.props.effect?this.props.effect:"float"), | ||
}) | ||
@@ -36,0 +36,0 @@ this.updateTooltip(e); |
22228