Don't try to show a tooltip when no title is defined
This commit is contained in:
parent
3e84c21e00
commit
26cb575a54
1 changed files with 8 additions and 5 deletions
|
@ -129,11 +129,14 @@
|
||||||
progressiveEventRendering: true,
|
progressiveEventRendering: true,
|
||||||
expandRows: true,
|
expandRows: true,
|
||||||
eventDidMount: info => {
|
eventDidMount: info => {
|
||||||
new Tooltip(info.el, {
|
const title = info.event.extendedProps.short_name;
|
||||||
title: info.event.extendedProps.short_name,
|
if (title !== undefined) {
|
||||||
trigger: 'hover',
|
new Tooltip(info.el, {
|
||||||
placement: 'top'
|
title: title,
|
||||||
});
|
trigger: 'hover',
|
||||||
|
placement: 'top'
|
||||||
|
});
|
||||||
|
}
|
||||||
},
|
},
|
||||||
viewDidMount: arg => {
|
viewDidMount: arg => {
|
||||||
spinner = new Spinner({
|
spinner = new Spinner({
|
||||||
|
|
Loading…
Reference in a new issue