Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion eclipse-scout-core/src/calendar/Calendar.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010, 2025 BSI Business Systems Integration AG
* Copyright (c) 2010, 2026 BSI Business Systems Integration AG
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -1562,6 +1562,11 @@ export class Calendar extends Widget implements CalendarModel {
if (!this.rendered || !this.attached || !this._calculateContextMenuVisible(event)) { // check needed because function is called asynchronously
return;
}
if (allowedType === Calendar.MenuType.CalendarComponent && !this.selectedComponent) {
// When right click is started outside the component and released on the component,
// no component is selected -> no context menu is opened
return;
}
let filteredMenus = menus.filter(this.menus, [allowedType], {
onlyVisible: true,
defaultMenuTypes: this.defaultMenuTypes
Expand Down