#620: Fix in array field of data files

This commit is contained in:
Elio Struyf
2023-08-16 09:43:56 +02:00
parent 4f8671ed2c
commit 32c2e822c2
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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)
@@ -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]));
}
}