summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordavidef <davidef1986@gmail.com>2017-04-19 08:28:06 +0200
committerAleksi Hietanen <aleksi@vaadin.com>2017-04-19 09:28:06 +0300
commitde63e1f36a479b9fdbf7faff5b96aa75745f5970 (patch)
tree9833c48f1d11905394e1952b9f2f50fb7eedaa5e
parentcce07036b62034a68297e1f2c0724d8d2e783b5d (diff)
downloadvaadin-framework-de63e1f36a479b9fdbf7faff5b96aa75745f5970.tar.gz
vaadin-framework-de63e1f36a479b9fdbf7faff5b96aa75745f5970.zip
Fix calendar dateclick does not work when in readonly mode (#9065)
Fixes #4967
-rw-r--r--client/src/main/java/com/vaadin/client/ui/calendar/schedule/DateCellContainer.java2
1 files changed, 1 insertions, 1 deletions
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) {