Impossible to "clear" an only item in a multivalued field #121

Closed
opened 2025-05-22 11:41:31 +00:00 by mih · 4 comments
mih commented 2025-05-22 11:41:31 +00:00 (Migrated from github.com)

Image

The workaround is to create a second item (click on plus). Afterwards both items have "delete" buttons. But only then.

![Image](https://github.com/user-attachments/assets/609699fb-feb1-4a8f-9595-b4eb378c5393) The workaround is to create a second item (click on plus). Afterwards both items have "delete" buttons. But only then.
mih commented 2025-05-22 11:43:15 +00:00 (Migrated from github.com)

Actually no. In some cases it is entirely impossible:

Image

When I click on the top trash can, the second field is removed. But the first is kept.

Actually no. In some cases it is entirely impossible: ![Image](https://github.com/user-attachments/assets/f4d383c4-9127-4d03-a812-e1c09b4cdae5) When I click on the top trash can, the second field is removed. But the first is kept.
jsheunis commented 2025-05-22 13:40:29 +00:00 (Migrated from github.com)

I am confused about what the issue is actually about, or whether there are multiple issues.

There is a clear button (the X icon), which is only available for the dropdown component. It will show when the component has a selected item. So you should be able to clear the selection.

And then there is a remove/delete button (the trash can icon), which is available for all values of a multivalued field, unless there is only one field.

I think you have two issues:

  • you want a clear button for other fields too, not only the dropdown
  • the wrong value is removed when you click the trash can icon of one value in a multivalued field

Is this assessment accurate?

I am confused about what the issue is actually about, or whether there are multiple issues. There is a _clear_ button (the X icon), which is only available for the dropdown component. It will show when the component has a selected item. So you should be able to clear the selection. And then there is a _remove/delete_ button (the trash can icon), which is available for all values of a multivalued field, unless there is only one field. I think you have two issues: - you want a clear button for other fields too, not only the dropdown - the wrong value is removed when you click the trash can icon of one value in a multivalued field Is this assessment accurate?
jsheunis commented 2025-11-12 09:24:47 +00:00 (Migrated from github.com)

I think this related to many interacting issues, some of which have been solved since. From my POV, a task that remains is to allow any type of component to clear its saved value. This is currently only possible for the InstancesSelectEditor.

I think this related to many interacting issues, some of which have been solved since. From my POV, a task that remains is to allow any type of component to clear its saved value. This is currently only possible for the `InstancesSelectEditor`.
Owner

Closing since the remaining challenge has been created as a separate issue: datalink/shacl-vue#314

Closing since the remaining challenge has been created as a separate issue: https://hub.psychoinformatics.de/datalink/shacl-vue/issues/314
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
orinoco/shacl-vue#121
No description provided.