- last update
over 1 year ago Build Successful
The Actions element includes a #process callback that renders all children with the #dropbutton property defined, early, before those children are run through the doBuildForm() method of the FormBuilder class. This causes the #ajax property, and most likely other properties, to be ignored.
The Actions element class already has an @todo comment to move this function from #process to #pre_render, so lets do that.
This code was added to the Drupal 8 code base in #2326891: Convert system_element_info() to Element classes → , and it appears that it came from the Drupal 7 code base, so this may require a backport to Drupal 7, but I'm not 100% sure.
Review and test the attached patch.
I am trying to implement ajax for node submit. For dropdown button ajax is not working. If it is single button without grouping ajax is working.
Can any one help me!
My code is here:
$form['actions']['publish']['#ajax'] = [
'callback' => 'node_ajax',
'wrapper' => 'node-form',
'effect' => 'fade',
'progress' => array(
'type' => 'throbber',
),
];
Needs work
10.1 ✨
Last updated
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.