Gin Admin Theme Breaks frontend_editing AJAX Behavior After Drupal 10 Upgrade
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3550749. --> Reported by: [habbs](https://www.drupal.org/user/3671721) Related to !130 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>I have a Drupal 10 site that I recently upgraded from Drupal 9. When using frontend_editing with the Gin admin theme, I&rsquo;m seeing inconsistent behavior:</p> <p>On some paragraphs (but not all), I get an alert:<br> /frontend-editing/form/paragraph/316?view_mode_id=default&amp;ajax_form=1&amp;_wrapper_format=drupal_ajax: ajax.$form.ajaxSubmit is not a function</p> <p>I applied the patches from <a href="https://www.drupal.org/project/drupal/issues/2755791">https://www.drupal.org/project/drupal/issues/2755791</a>. After that, the alert disappears, but the JS from frontend_editing is not being used:</p> <p>Clicking Save does not close the side panel.<br> If I manually reload the page, the changes are applied.</p> <p>When I switch the admin theme to Claro, everything works as expected. This suggests the problem is specific to Gin.</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>Upgrade a Drupal 9 site to Drupal 10.<br> Enable Gin as the admin theme.<br> Enable frontend_editing module.<br> Edit a paragraph using frontend editing. (I've had the most problem with saving block reference paragraphs and image paragraphs where I change the view mode)<br> Click Save.</p>
issue