Hi all, I created a simple custom picker datatype. It works great, except when used in an (inline) blocklist. If the property is mandatory, but not set, it triggers the validation, but when picking a value after that, the validation doesn't update anymore and I am unable to save and publish.
Has anybody tackled this before and can give me a pointer?
D_Inventor
04/09/2024, 11:49 AM
It turns out you can fix this by appending the following snippet of html at the end of your property editor html view:
Copy code
html
<ng-form name="myEditorForm">
<input type="hidden" name="modelValue" ng-model="model.value" ng-required="model.validation.mandatory" />
</ng-form>