When I try to add the Membership Calculator Block, nothing happens, the button spins and I can't see the block added to the page.
Upon inspecting the error, I see a 500 returned in the Network tab with this message
<em class="placeholder">LogicException</em>
: A stray renderRoot() invocation is causing bubbling of attached assets to break. in <em class="placeholder">Drupal\Core\Render\Renderer->renderRoot()</em>
(line <em class="placeholder">142</em>
of <em class="placeholder">core/lib/Drupal/Core/Render/Renderer.php</em>
). <pre class="backtrace">Drupal\openy_calc\Form\CalcBlockForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('calc_block_form ', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm('Drupal\openy_calc\Form\CalcBlockForm ', Object) (Line: 224)
Drupal\Core\Form\FormBuilder->getForm('Drupal\openy_calc\Form\CalcBlockForm ') (Line: 61)
Drupal\openy_calc\Plugin\Block\CalcBlock->build() (Line: 117)
Drupal\layout_builder\EventSubscriber\BlockComponentRenderArray->onBuildRender(Object, 'section_component.build.render_array ', Object)
call_user_func(Array, Object, 'section_component.build.render_array ', Object) (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch(Object, 'section_component.build.render_array ') (Line: 90)
Drupal\layout_builder\SectionComponent->toRenderArray(Array, 1) (Line: 88)
Drupal\layout_builder\Section->toRenderArray(Array, 1) (Line: 228)
Drupal\layout_builder\Element\LayoutBuilder->buildAdministrativeSection(Object, 1) (Line: 112)
Drupal\layout_builder\Element\LayoutBuilder->layout(Object) (Line: 86)
Drupal\layout_builder\Element\LayoutBuilder->preRender(Array)
call_user_func_array(Array, Array) (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback(Array, Array, 'Render #pre_render callbacks must be methods of a class that implements \Drupal\Core\Security\TrustedCallbackInterface or be an anonymous function. The callback was %s. See https://www.drupal.org/node/2966725 ', 'exception ', 'Drupal\Core\Render\Element\RenderCallbackInterface ') (Line: 788)
Drupal\Core\Render\Renderer->doCallback('#pre_render ', Array, Array) (Line: 374)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 204)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 148)
Resolves https://yusa.atlassian.net/browse/DS-1297