mirror of
https://github.com/filamentphp/filament.git
synced 2026-08-28 18:53:05 +08:00
fix: disable the clone action when max items on repeater is reached (#20342)
This commit is contained in:
@@ -21,6 +21,10 @@ trait CanBeCloned
|
||||
return false;
|
||||
}
|
||||
|
||||
if (filled($this->getMaxItems()) && ($this->getMaxItems() <= $this->getItemsCount())) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return (bool) $this->evaluate($this->isCloneable);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user