Description
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.
Steps to reproduce
- Install a fresh Umbraco 15.3.0 instance
- Create Text Block element content type
- Add an RTE field called Text
- Create a Text Block Settings element content type
- Add a true/false type called Enabled
- Create a Templated Content Type called Home Page
- 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.
- Allow Home Page at root
- 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