Skip to content

Umbraco 15: Javascript error in blocklist when switching to settings tab #18805

Closed
@cg-hurst

Description

@cg-hurst

Which Umbraco version are you using?

15.3.0

Bug summary

When switching between the content and settings tabs in the blocklist sidebar, a javascript error is thrown, occasionally causing the dialog not to update. The error is:

Uncaught RangeError: Maximum call stack size exceeded
at UmbContextProviderController.destroy (context-provider.controller.js:26:12)
at et.destroy (validation.controller.ts:310:23)
at UmbContextProviderController.destroy (context-provider.js:88:34)
at UmbContextProviderController.destroy (context-provider.controller.js:32:15)
at et.destroy (validation.controller.ts:310:23)
at UmbContextProviderController.destroy (context-provider.js:88:34)
at UmbContextProviderController.destroy (context-provider.controller.js:32:15)
at et.destroy (validation.controller.ts:310:23)
at UmbContextProviderController.destroy (context-provider.js:88:34)
at UmbContextProviderController.destroy (context-provider.controller.js:32:15)

Specifics

This happens in the backoffice when editing a blocklist's block in a modal. Clicking on the Content or Settings tabs throws a javascript error.

Image

Steps to reproduce

  1. Install a fresh Umbraco 15.3.0 instance
  2. Create Text Block element content type
  3. Add an RTE field called Text
  4. Create a Text Block Settings element content type
  5. Add a true/false type called Enabled
  6. Create a Templated Content Type called Home Page
  7. Add a Block list to the Home Page. Add the Text Block to the list of blocks and the Text Block Settings as it's settings.
  8. Allow Home Page at root
  9. Navigate to the content tab and create a Home Page. Add the text block and switch between Content and Settings.

Expected result / actual result

Expected: No javascript error expected.

Actual: Error thrown and dialog does not update the first time the error occurs

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions