From de63e1f36a479b9fdbf7faff5b96aa75745f5970 Mon Sep 17 00:00:00 2001 From: davidef Date: Wed, 19 Apr 2017 08:28:06 +0200 Subject: [PATCH] Fix calendar dateclick does not work when in readonly mode (#9065) Fixes #4967 --- .../vaadin/client/ui/calendar/schedule/DateCellContainer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/main/java/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java b/client/src/main/java/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java index 82cd26dd3c..1f2b37a13a 100644 --- a/client/src/main/java/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java +++ b/client/src/main/java/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java @@ -106,7 +106,7 @@ public class DateCellContainer extends FlowPanel public void onMouseUp(MouseUpEvent event) { if (event.getSource() == clickTargetWidget && clickTargetWidget instanceof WeeklyLongEventsDateCell - && !calendar.isDisabledOrReadOnly()) { + && !calendar.isDisabled()) { CalendarEvent calendarEvent = ((WeeklyLongEventsDateCell) clickTargetWidget) .getEvent(); if (calendar.getEventClickListener() != null) { -- 2.39.5