Description
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
12.3.10
Bug summary
When revalidating a property with a picker such as a content picker in a BlockList element that has previously failed validation it is not possible to then pass validation even when an item is selected.
Specifics
No response
Steps to reproduce
Create a Simple Element type with 2 properties, one Content Picker and one textstring and neither are mandatory.
Create a simple content type and give it one property which should be a block list property that allows you to add your element type.
Create a new content node, give it a name and save.
Add a new instance of your element type but add no data.
Save the node.
Edit the element type and make the content picker property mandatory.
Click Submit
in the overlay and Save
the element type.
Return to the content node created earlier and click Save
.
You will get a validation error:
Click on the BlockList item to reveal the property that failed validation
Click Submit
in the overlay and the warning will turn to an error saying Value cannot be empty
:
Use the content picker to select a content item
Click Submit
and you are now stuck! You cannot submit the dialog despite having provided the mandatory property. The only thing you can do is close and lose the change.
Expected result / actual result
I would expect after selecting the content item that validation error would be resolved and disappear. I would also expect to be able to submit the changes in the overlay but you can't. You are stuck with only one option and that is to lose your change and simply close the overlay.
If you were to then refresh the page, select the item in the blocklist, add the content item for the mandatory property and submit the overlay it validates fine because the validation has not been previously triggered.
This item has been added to our backlog AB#46893