Streamfield: remove "Add" button when maxItems is reached
This commit is contained in:
@ -87,10 +87,9 @@ const Streamfield: React.FC<IStreamfield> = ({
|
||||
</Stack>
|
||||
)}
|
||||
|
||||
{onAddItem && (
|
||||
{(onAddItem && (values.length < maxItems)) && (
|
||||
<Button
|
||||
onClick={onAddItem}
|
||||
disabled={values.length >= maxItems}
|
||||
theme='secondary'
|
||||
block
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user