diff --git a/CHANGELOG.md b/CHANGELOG.md index c2f800f5..c4b5c27d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -49,6 +49,7 @@ - [#595](https://github.com/estruyf/vscode-front-matter/issues/595): Fix for media metadata now showing up - [#596](https://github.com/estruyf/vscode-front-matter/issues/596): Fix for number field in block data - [#603](https://github.com/estruyf/vscode-front-matter/issues/603): Fix problem with page bundles and path placeholders +- [#620](https://github.com/estruyf/vscode-front-matter/issues/620): Fix in array field of data files ## [8.4.0] - 2023-04-03 - [Release notes](https://beta.frontmatter.codes/updates/v8.4.0) diff --git a/src/components/uniforms-frontmatter/ListAddField.tsx b/src/components/uniforms-frontmatter/ListAddField.tsx index beb229e7..e5aaf636 100644 --- a/src/components/uniforms-frontmatter/ListAddField.tsx +++ b/src/components/uniforms-frontmatter/ListAddField.tsx @@ -28,7 +28,7 @@ function ListAdd({ disabled, initialCount, name, readOnly, value, ...props }: Li const limitNotReached = !disabled && !(parent.maxCount <= parent.value.length); function onAction(event: React.KeyboardEvent | React.MouseEvent) { - if (limitNotReached && !readOnly && (!('key' in event) || event.key === 'Enter')) { + if (!limitNotReached && !readOnly && (!('key' in event) || event.key === 'Enter')) { parent.onChange(parent.value.concat([value])); } }