question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Block list editor doesn't open on create, if first tab of element only features inherited properties

See original GitHub issue

Which 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 image

Composition 2 image

Create the follow element: image

Create the following Composition: image The block list is a lift of element “Element” image

Create content page: image

Expected result / actual result

I would expect the editor to open, however it doesn’t.

Issue Analytics

  • State:closed
  • Created 5 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
nickosvcommented, Apr 14, 2023

@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 😃

0reactions
markadrakecommented, Apr 14, 2023

Anyway, looks like I wasn’t thorough enough when reporting the issue - sorry for wasting your time. I’ve updated the “Steps to reproduce” part of the original post.

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,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Block List - Umbraco CMS
To set up your Block List Editor property, create a new Data Type and select Block List from the list of available property...
Read more >
Using the Chrome web developer tools, Part 1
I'll walk through all the major features of the elements tab of the Chrome ... listing, Chrome added one to make the HTML...
Read more >
Vue 3 passing array warning: Extraneous non-props ...
vue component is rendering fragments - because it is rendering multiple <div> elements using v-for . Which means there is no single root...
Read more >
Find invalid, overridden, inactive, and other CSS
Discover issues with CSS properties at a glance. ... The first thing to do is inspect the element and make sure that your...
Read more >
Inheritance - CSS: Cascading Style Sheets - MDN Web Docs
In CSS, inheritance controls what happens when no value is specified for a property on an element.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found