describo / crate-builder-component

A VueJS UI component to build an RO-Crate
MIT License
6 stars 3 forks source link

Clearing a text field makes the field disappear #83

Closed beepsoft closed 11 months ago

beepsoft commented 11 months ago

In 0.50.3 (but it also happens in older version, eg. 0.46.1) when I delete a text field's content with backspace and press Enter or green button, the text field disappears and and empty string value is generated in the json.

Here I add some text fields, delete them using backspace+enter and the ro crate json ends up having 3 empty strings. As no field is displayed for the empty values these cannot actually be deleted. When a field's value becomes empty it should produce no value in the json at all, I think. It probably should behave as a delete operation using the red button.

screencast-localhost_9000-2023.10.27-09_11_13.webm

beepsoft commented 11 months ago

This is even more noticeable and problematic when only a single value can be entered (Title in this case). This is the UI in this case with a cleared, empty value:

image
marcolarosa commented 11 months ago

Please check out 0.50.4. This should be resolved now.

Sorry about the delay - i was knocked out with covid!

beepsoft commented 11 months ago

Thanks @marcolarosa, I will check it later this week!