You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 3.1.0 in Vue (3) using the Vanilla renderers, the labels of child elements of the Array Renderer are no longer set to the first primitive of the Array.
So if I have a Json Schema such as this:
Replaced `isNaN` with `Number.isNaN` to ensure accurate checks.
`isNaN` returns true for most text values, resulting in labels not being shown in the array renderer.
closeseclipsesource#2157
Replace `isNaN` with `Number.isNaN` to ensure accurate checks.
`isNaN` returns true for most text values, leading to missing
labels in the Vue array renderer.
closes#2157
Describe the bug
Hi there, thank you for your hard work.
In 3.1.0 in Vue (3) using the Vanilla renderers, the labels of child elements of the Array Renderer are no longer set to the first primitive of the Array.
So if I have a Json Schema such as this:
And a UI Schema like this
I get a form such as this:
If I type in the first name and tab out of the field it looks like this:
So the Child Item Label, which would be in the frist gray box, stays empty.
If I do the same in 3.0.0, the label is set correctly (first gray box).
I did not have chance to debug through the vue-vanilla-renderer code yet, but no errors are thrown.
Best wishes,
Andreas W.
Expected behavior
The child label should be correctly set to the first primitive of the array, i.e. the same behavior as in 3.0.0.
Steps to reproduce the issue
I also prepared a reproduction repo which is based on your seed repo here: https://github.com/awaigand/jsonforms-vue-array-label-bug
Screenshots
No response
In which browser are you experiencing the issue?
Firefox 115, Chrome 114
Which Version of JSON Forms are you using?
v3.1.0
Framework
Core, Vue 3
RendererSet
Vanilla
Additional context
No response
The text was updated successfully, but these errors were encountered: