Skip to content

Commit

Permalink
added disabling of delete button on edit
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-kho committed Sep 9, 2024
1 parent 726c95d commit b3f588a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shared/ResourceForm/fields/MultiInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export function MultiInput({
newItemAction,
newItemActionWidth = 1,
inputInfo,
disableOnEdit,
editMode,
...props
}) {
const { t } = useTranslation();
Expand Down Expand Up @@ -186,7 +188,7 @@ export function MultiInput({
{!isLast(index) && (
<div className="bsl-col-md--1">
<Button
disabled={readOnly}
disabled={readOnly || (disableOnEdit && editMode)}
className={classnames({
hidden: isEntryLocked(entry),
})}
Expand Down

0 comments on commit b3f588a

Please sign in to comment.