Closed brannmark closed 10 months ago
Hi @brannmark, thanks for raising this. I still haven't tried out UI Builder yet, so I'm still unsure about how much of the Contentment editors (of any other 3rd party packages) are supported.
The JavaScript error you get appears to be related to this line... https://github.com/leekelleher/umbraco-contentment/blob/743a8d82d5bcfcef6200828e5fc28a55a874f059/src/Umbraco.Community.Contentment/DataEditors/DataPicker/data-picker.js#L44
Which suggests that UI Builder isn't populating the editorState.getCurrent()
, so the Data Picker isn't aware of the current page.
I'll look to patch this in the Data Picker, so it has a fallback value.
This should also be raised the UI Builder issue tracker, similar to the previous issue you encountered in #368.
Added an issue to UI Builder Issues also now. Thanks for a great support!
Tried adding the action so its trigger on a item which then has an id in the url. Then it renders as supposed to.
It works to render when used on a single item. But when a value is picked and you try to execute the action it fails catastrophic. Kills the IIS express, no log errors what so ever.
The preform action fails and kills the IIS server. Might be that ID problem when the Contentment data picker should be loaded on execute perhaps?
Seams like the IIS crash is not a Contentment problem but an Umbraco/UI builder problem as built in actions with settings also fails on execute. https://github.com/umbraco/Umbraco.UIBuilder.Issues/issues/84
Which Contentment version are you using?
4.6.0
Which Umbraco version are you using? For example: 10.3.2 - don't just write v10
13.0.3
Bug summary
Datatype with a data picker in a custom UI builder action doesn't work. It does not render as supposed to.
Throw following error:
Using this code for custom action:
Datatype:
Collection:
Rendering:
Steps to reproduce
1, Create a datatype using Data Picker
Expected result / actual result
Expected editor to be rendered.
Do you have Umbraco ModelsBuilder enabled?
What browsers are you seeing the problem on?
Firefox, Chrome, Safari, Microsoft Edge