From 4f28906a031bba09fa82aac7d86fc5c2b16fc31f Mon Sep 17 00:00:00 2001 From: "Antonio D. Gonzalez" Date: Wed, 18 May 2016 22:00:10 +0200 Subject: [PATCH] Ensure data-html is converted to bool type --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 0f890011d..298f9ec0d 100644 --- a/src/index.js +++ b/src/index.js @@ -267,7 +267,7 @@ class ReactTooltip extends Component { type: e.currentTarget.getAttribute('data-type') || this.props.type || 'dark', effect: e.currentTarget.getAttribute('data-effect') || this.props.effect || 'float', offset: e.currentTarget.getAttribute('data-offset') || this.props.offset || {}, - html: e.currentTarget.getAttribute('data-html') || this.props.html || false, + html: e.currentTarget.getAttribute('data-html') === 'true' || this.props.html || false, delayShow: e.currentTarget.getAttribute('data-delay-show') || this.props.delayShow || 0, delayHide: e.currentTarget.getAttribute('data-delay-hide') || this.props.delayHide || 0, border: e.currentTarget.getAttribute('data-border') === 'true' || this.props.border || false,