Which Umbraco.Community.BlockPreview version are you using?
1.14.0
Which Umbraco version are you using? For example: 10.4.0 - don't just write v10
13.13.0
Bug summary
We are using a block grid where you add blocks of rows (full width, half/half etc) and then in those row blocks we add content blocks in the row areas.
I have tested this on the root of the grid to make sure the above is not the cause of the issue and can confirm the issue is still present if the content blocks are in the root of the block grid.
For some of our previews scripts are required (for maps etc) to properly render. While the scripts execute in the blocklist version of the preview the same block in a block grid does not.
Steps to reproduce
Create a content block that requires some javascript while in the preview. can be basic such as a simple script tag that contains console.log("hello world.")
Add a block list and a block grid that can both use the same block and add the above block to both.
Save and publish.
Clear the browser console and hard refresh. You should only see the log statement once for the block list preview. The block grid preview has not triggered the script.
Expected result / actual result
Block previews for a block used in either a blocklist or a blockgrid should act the same and run any scripts contained.
Which Umbraco.Community.BlockPreview version are you using?
1.14.0
Which Umbraco version are you using? For example: 10.4.0 - don't just write v10
13.13.0
Bug summary
We are using a block grid where you add blocks of rows (full width, half/half etc) and then in those row blocks we add content blocks in the row areas.
I have tested this on the root of the grid to make sure the above is not the cause of the issue and can confirm the issue is still present if the content blocks are in the root of the block grid.
For some of our previews scripts are required (for maps etc) to properly render. While the scripts execute in the blocklist version of the preview the same block in a block grid does not.
Steps to reproduce
Create a content block that requires some javascript while in the preview. can be basic such as a simple script tag that contains console.log("hello world.")
Add a block list and a block grid that can both use the same block and add the above block to both.
Save and publish.
Clear the browser console and hard refresh. You should only see the log statement once for the block list preview. The block grid preview has not triggered the script.
Expected result / actual result
Block previews for a block used in either a blocklist or a blockgrid should act the same and run any scripts contained.