diff --git a/src/components/planning/PlanningsPage.tsx b/src/components/planning/PlanningsPage.tsx index a20aaab..afff7ce 100644 --- a/src/components/planning/PlanningsPage.tsx +++ b/src/components/planning/PlanningsPage.tsx @@ -34,6 +34,7 @@ interface IPlanningsPageState { isPlanningsDetailVisible: boolean; studentsForPlanningsDetail: Student[]; selectedDateForPlanningDetail: moment.Moment | undefined; + userIsTouching: boolean; } class PlanningsPage extends React.Component { @@ -66,6 +67,7 @@ class PlanningsPage extends React.Component { @@ -86,6 +88,9 @@ class PlanningsPage extends React.ComponentCapaciteiten} content={this.renderDepartmentPopoverContent(plannedStudentsToday)} mouseEnterDelay={0.5} + trigger={this.state.userIsTouching ? "contextMenu" : "hover"} > -
+
{departmentsRows}
@@ -302,6 +308,20 @@ class PlanningsPage extends React.Component { + this.setState({ userIsTouching: false }); + }, 100); + } + private handlePlanningsDetailClose(): void { this.setState({ isPlanningsDetailVisible: false,