The calculated machine is not synced when the source value is defined and the machine name is empty.

Created on 4 April 2024, over 1 year ago

Problem/Motivation

The calculated machine is not synced when the source value is defined and the machine name is empty.

Steps to reproduce

  • Create a form using the below elements.
  • Notice how the machine is set and correct
  • Change the title and machine name is not updated.
    $form['id'] = [
      '#type' => 'machine_name',
      '#default_value' => $webform->id(),
      '#machine_name' => ['source' => ['title']],
    ];
    $form['title'] = [
      '#type' => 'textfield',
      '#title' => $this->t('Title'),
      '#default_value' => 'A default title',
      '#id' => 'title',
    ];

Proposed resolution

Adjust the machine_name.js to properly sync the calculated machine name,

Remaining tasks

Determine a solution
Create MR
Commit MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

πŸ› Bug report
Status

Active

Version

10.2 ✨

Component
FormΒ  β†’

Last updated 2 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States jrockowitz Brooklyn, NY

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024