mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-06-22 11:05:03 +02:00
#620: Fix in array field of data files
This commit is contained in:
@@ -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]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user