From 1ee99d1ebad9902e8ce5626a1167bc65d6199b7d Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 27 Aug 2019 20:35:38 +0300 Subject: [PATCH] Fixed #994 - Add className option to Tooltip --- src/components/tooltip/Tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/tooltip/Tooltip.js b/src/components/tooltip/Tooltip.js index c6118c3ac0..61e731a4ed 100644 --- a/src/components/tooltip/Tooltip.js +++ b/src/components/tooltip/Tooltip.js @@ -258,7 +258,7 @@ export default class Tooltip { this.container.style.top = -999 + 'px'; let defaultClassName = 'p-tooltip p-component p-tooltip-' + position; - this.container.className = this.tooltipStyleClass ? defaultClassName + ' ' + this.tooltipStyleClass : defaultClassName; + this.container.className = this.options.className ? defaultClassName + ' ' + this.options.className : defaultClassName; } isOutOfBounds() {