fix: disable the clone action when max items on repeater is reached (#20342)

This commit is contained in:
Kian Acquoij
2026-08-07 09:54:44 +02:00
committed by GitHub
parent a054de7da3
commit 31a02e57ef
@@ -21,6 +21,10 @@ trait CanBeCloned
return false;
}
if (filled($this->getMaxItems()) && ($this->getMaxItems() <= $this->getItemsCount())) {
return false;
}
return (bool) $this->evaluate($this->isCloneable);
}
}