A single submit button on ajax form renders twice. Button appears in the
(at the bottom) and again in the
Create a standard FormBase class and enable ajax for the submit.
$form['actions'] = ['#type' => 'actions'];
$form['actions']['send'] = [
'#type' => 'submit',
'#value' => $this->t('Email Denied Message'),
'#ajax' => [
'callback' => [$this, 'submitModalFormAjax'],
'event' => 'click',
],
];
return $form;
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.