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,
|
||||
expandRows: true,
|
||||
eventDidMount: info => {
|
||||
new Tooltip(info.el, {
|
||||
title: info.event.extendedProps.short_name,
|
||||
trigger: 'hover',
|
||||
placement: 'top'
|
||||
});
|
||||
const title = info.event.extendedProps.short_name;
|
||||
if (title !== undefined) {
|
||||
new Tooltip(info.el, {
|
||||
title: title,
|
||||
trigger: 'hover',
|
||||
placement: 'top'
|
||||
});
|
||||
}
|
||||
},
|
||||
viewDidMount: arg => {
|
||||
spinner = new Spinner({
|
||||
|
|
Loading…
Reference in a new issue