app/javascript/avo.base.js in avo-3.10.10 vs app/javascript/avo.base.js in avo-3.11.0
- old
+ new
@@ -47,9 +47,17 @@
reference.removeAttribute('title')
reference.removeAttribute('data-tippy')
return title
},
+ onShow(tooltipInstance) {
+ // Don't render tooltip if there is no content.
+ if (tooltipInstance.props.content === null || tooltipInstance.props.content.length === 0) {
+ return false
+ }
+
+ return tooltipInstance
+ },
})
}
window.initTippy = initTippy