describo / crate-builder-component

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

Controls disappears when clearing value of a non multiple item #55

Closed beepsoft closed 1 year ago

beepsoft commented 1 year ago

In our Profile we have an input definition like this:

        {
          "id": "https://dataverse.org/schema/citation/authorAffiliation",
          "name": "authorAffiliation",
          "label": "Affiliation",
          "help": "The name of the entity affiliated with the author, e.g. an organization's name",
          "type": [
            "Text"
          ],
          "required": false,
          "multiple": false
        },

If we delete the value using the delete icon then the field's value is deleted and we have a "+ Text" button again.

However, if instead of the delete button, we just clear all the text in the field, we cannot edit it anymore, add a new value, or delete it because no controls appear.

All this only happens with "multiple": false fields.

screencast-github.com-2023.06.13-14_33_14.webm

marcolarosa commented 1 year ago

Checkout 0.37.3. Good find!