Node form sticky submit interferes with another form

Created on 4 December 2024, 14 days ago

Problem/Motivation

With rc14 The sticky submit button from the node form tries to submit a second form on the same page causing an error "The invalid form control with name=β€˜masquerade_as’ is not focusable."

With rc13 there is no problem submitting the node form.

Steps to reproduce

With masquerade enabled add the masquerade form to the admin toolbar.

<?php
  public function toolbar() {
    if ($this->account->hasPermission('can masquerade as')) {
      $items['masquerade'] = [
        '#type' => 'toolbar_item',
        'tab' => \Drupal::formBuilder()->getForm('Drupal\masquerade\Form\MasqueradeForm'),
        '#wrapper_attributes' => [
          'class' => ['masquerade-toolbar-tab'],
          'id' => 'toolbar-tab-masquerade',
        ],
        '#weight' => 1000,
      ];
    }
    
    return $items;
  }
?>

then try to submit a node form

πŸ› Bug report
Status

Active

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain abelass

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

Comments & Activities

Production build 0.71.5 2024