Deleting regular menu items breaks on modal return

Created on 31 January 2025, 2 months ago

Problem/Motivation

When you try to delete a regular menu item the page refreshes within the modal instead of the page itself.

Steps to reproduce

  1. Install the module.
  2. Go to
  3. Create a drupal menu or view an existing one.
  4. Add a new menu link if you don't have one already.
  5. Select the 'Delete' operation for a menu item.
  6. Confirm delete operation
  7. Instead of refreshing the page with a list of updated menu links, the list changes in the modal. Even after clicking save the modal just closes and the page still shows the old menu link until refreshed manually.

Proposed resolution

  • Update MenuFormLB form to pass a parameter to the operation link to identify as an LB form.
  • Update inline_entity_form.module inline_entity_menu_form_form_alter to use parameter and only add custom submit callback when identified as an LB form.
🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇨🇦Canada gordonio

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @gordonio
  • 🇮🇳India aman_lnwebworks

    Hi @gordonio

    We encountered the same issue while using the "Inline Entity Menu Form" module. To resolve this issue, we are replacing the 'use-ajax-submit' class with the 'use-ajax' class in the following line of the inline_entity_menu_form_form_alter() function.

    $form['actions']['submit']['#attributes']['class'][] = 'use-ajax-submit';

    We have added a patch for this issue.

Production build 0.71.5 2024