I am using Full Calendar v5.3.2 in my rails application Rails version 4.2.11.
on initializing tooltip in eventDidMount
i am getting an error of Tooltip is not defined
I am using bootstrap.bundle in my project so I think I don't need popper.js for tooltip but I have already tried adding popper.js in the project but the error was the same.
Here is the code I am using to initialize the calendar
var calendarEl = document.getElementById('full_calendar');
calendar = new FullCalendar.Calendar(calendarEl, {
initialView: 'dayGridMonth',
displayEventTime: false,
eventDidMount: function(info) {
var tooltip = new Tooltip(info.el, {
title: info.event.extendedProps.description,
placement: 'top',
trigger: 'hover',
container: 'body'
});
}
});
Error Details:
Uncaught ReferenceError: Tooltip is not defined at eventDidMount (calender:1560) at t.componentDidMount (main.min.self368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7) at main.min.self-368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7 at Array.some () at main.min.self-368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7 at Array.some () at I (main.min.self-368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7) at main.min.self-368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7 at Array.some () at w (main.min.self-368cb59d5bfd4af3ab7b619eedaad5661cfc37245ac94224bed5714f0e5e4a5f.js?body=1:7)