Skip to content

Commit

Permalink
Revert "Add new array elements at the top"
Browse files Browse the repository at this point in the history
This reverts commit 12a59db.
  • Loading branch information
lordrip committed Oct 14, 2024
1 parent 42b5bac commit d1250a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ListAddField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function ListAddField({ disabled = false, name, value, ...props }: ListAddFieldP
style={{ paddingLeft: "0", paddingRight: "0" }}
disabled={!limitNotReached}
onClick={() => {
!disabled && limitNotReached && parent.onChange(([cloneDeep(value)]).concat(parent.value ?? []));
!disabled && limitNotReached && parent.onChange((parent.value ?? []).concat([cloneDeep(value)]));
}}
{...filterDOMProps(props)}
label='THIS IS A LABEL'
Expand Down

0 comments on commit d1250a9

Please sign in to comment.