Block list editor doesn't open on create, if first tab of element only features inherited properties
See original GitHub issueWhich Umbraco version are you using? (Please write the exact version, example: 10.1.0)
11.2.1
Bug summary
If an element in a block list’s first tab only includes properties that are inherited from compositions, the editor won’t open on “Add”.
If a property is added to the element’s first tab, the “Add” will open the editor.
https://user-images.githubusercontent.com/9071126/231371525-91e08d9a-f303-440b-b648-f3ee4dbb57ea.mp4
Specifics
Function userFlowWhenBlockWasCreated(createIndex)
evaluates whether first tab has any properties using
_blockObject$content$ = blockObject.content.variants[0].tabs[0]
_blockObject$content$.properties.length > 0
In the first case blockObject.content.variants[0].tabs[0].properties.length
is 0
.
blockObject.content.variants[0].tabs
produces the following JSON response:
example.zip
Notice that on line 20 in example.json, the properties that are present in the first tab when editing the content are also available.
Steps to reproduce
Create the following compositions:
Composition 1
Composition 2
Create the follow element:
Create the following Composition:
The block list is a lift of element “Element”
Create content page:
Expected result / actual result
I would expect the editor to open, however it doesn’t.
Issue Analytics
- State:
- Created 5 months ago
- Comments:6 (3 by maintainers)
@markadrake Hmm, can’t see any difference between your setup and mine. I’ll try digging a bit deeper and get back to you guys if it’s needed. Thanks for the effort so far 😃
Not at all! Please always feel encouraged to report a bug or issue mate. I never want to make anyone feel like their time is wasted. 😃
I’m attaching a video of my test. If you have time, could you tell me if I followed your instructions correctly?
https://user-images.githubusercontent.com/713355/232054398-50ed51ae-e520-4116-83ce-5e13d218a1a5.mp4
All the best,