We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cce84a6 commit caf320aCopy full SHA for caf320a
src/Extensions/FormFieldExtension.php
@@ -139,6 +139,10 @@ public function updateAttributes(&$attributes)
139
*/
140
public function getCalendarEnabled()
141
{
142
+ if ($this->owner->isReadonly() || $this->owner->isDisabled()) {
143
+ return 'false';
144
+ }
145
+
146
return ($this->calendarDisabled || $this->owner->config()->calendar_disabled) ? 'false' : 'true';
147
}
148
0 commit comments