Skip to content

Commit

Permalink
fix: don't delete array field on click in FieldLabel
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Oct 7, 2024
1 parent 71974f3 commit ed282b9
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,9 @@ export const ArrayField = ({
e.stopPropagation();
setHovering(false);
}}
onClick={(e) => {
e.preventDefault();
}}
>
{localState.arrayState.items.map((item, i) => {
const { _arrayId = `${id}-${i}`, _originalIndex = i } = item;
Expand Down

0 comments on commit ed282b9

Please sign in to comment.