diff options
Diffstat (limited to 'ui/app/components/tooltip.js')
-rw-r--r-- | ui/app/components/tooltip.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/app/components/tooltip.js b/ui/app/components/tooltip.js index fb67c717e..757ad0cd6 100644 --- a/ui/app/components/tooltip.js +++ b/ui/app/components/tooltip.js @@ -11,12 +11,14 @@ function Tooltip () { } Tooltip.prototype.render = function () { + const props = this.props + const { position, title, children } = props return h(ReactTooltip, { - position: props.position ? props.position : 'left', - title: props.title, + position: position || 'left', + title, fixed: false, - }, props.children) + }, children) } |