We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13466e commit 41e6cc0Copy full SHA for 41e6cc0
components/tooltip/Tooltip.jsx
@@ -148,7 +148,8 @@ export default {
148
render (h) {
149
const { $props, $data, $slots } = this
150
const { prefixCls, openClassName, getPopupContainer } = $props
151
- const children = ($slots.default || []).filter(c => c.tag || c.text.trim() !== '')
+ let children = ($slots.default || []).filter(c => c.tag || c.text.trim() !== '')
152
+ children = children.length === 1 ? children[0] : children
153
let sVisible = $data.sVisible
154
// Hide tooltip when there is no title
155
if (!hasProp(this, 'visible') && this.isNoTitle()) {
0 commit comments