mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-05-25 02:32:59 -04:00
ConfirmRemovalForm: Drop autofocus entirely
Besides that this is a destructive operation which shouldn't get automatic focus… our native way to adhere to WCAG standards is by focusing the newly rendered container which suffices.
This commit is contained in:
parent
acc0259464
commit
0488bebd8c
1 changed files with 0 additions and 15 deletions
|
|
@ -22,19 +22,4 @@ class ConfirmRemovalForm extends Form
|
|||
$this->setName('form_confirm_removal');
|
||||
$this->getSubmitLabel() ?: $this->setSubmitLabel($this->translate('Confirm Removal'));
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritdoc}
|
||||
*/
|
||||
public function addSubmitButton()
|
||||
{
|
||||
parent::addSubmitButton();
|
||||
|
||||
if (($submit = $this->getElement('btn_submit')) !== null) {
|
||||
$class = $submit->getAttrib('class');
|
||||
$submit->setAttrib('class', empty($class) ? 'autofocus' : $class . ' autofocus');
|
||||
}
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue