Disable remove button only when it's the last field (#3136)
This commit is contained in:
parent
3e08fbaa4b
commit
a1140191d6
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ export const MultiLineInput = ({
|
|||
onClick={() => remove(index)}
|
||||
tabIndex={-1}
|
||||
aria-label={t("common:remove")}
|
||||
isDisabled={index === 0}
|
||||
isDisabled={fields.length === 1}
|
||||
>
|
||||
<MinusCircleIcon />
|
||||
</Button>
|
||||
|
|
Loading…
Reference in a new issue