Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Wrap around tooltip to avoid errors on removal

Oliver Güntherac0abfe95697
diff --git a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
index 3ea6e3b8235..e2a6237e087 100644
--- a/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
+++ b/frontend/src/app/features/calendar/te-calendar/te-calendar.component.ts
@@ -505,7 +505,11 @@ export class TimeEntryCalendarComponent {
}
private removeTooltip(event:CalendarViewEvent):void {
- jQuery(event.el).tooltip('disable');
+ const target = jQuery(event.el);
+
+ if (target.tooltip('instance')) {
+ jQuery(event.el).tooltip('disable');
+ }
}
private prependDuration(event:CalendarViewEvent):void {