diff --git a/src/Extensions/FormFieldExtension.php b/src/Extensions/FormFieldExtension.php index bc914f5..d5c2d9b 100644 --- a/src/Extensions/FormFieldExtension.php +++ b/src/Extensions/FormFieldExtension.php @@ -139,6 +139,10 @@ public function updateAttributes(&$attributes) */ public function getCalendarEnabled() { + if ($this->owner->isReadonly() || $this->owner->isDisabled()) { + return 'false'; + } + return ($this->calendarDisabled || $this->owner->config()->calendar_disabled) ? 'false' : 'true'; }