Skip to content

Commit

Permalink
[BUGFIX] Respect disabled flag in render method of LinkButton
Browse files Browse the repository at this point in the history
Resolves: #91244
Releases: master
Change-Id: I107cb96ff416211028f9da524500f1ca15c3297c
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/64393
Tested-by: Daniel Goerz <daniel.goerz@posteo.de>
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Josef Glatz <josefglatz@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Daniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Josef Glatz <josefglatz@gmail.com>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
  • Loading branch information
NeoBlack authored and georgringer committed May 6, 2020
1 parent 11b5876 commit c342a0d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,10 @@ public function render()
if ($this->onClick !== '') {
$attributes['onclick'] = $this->onClick;
}
if ($this->isDisabled()) {
$attributes['disabled'] = 'disabled';
$attributes['class'] .= ' disabled';
}
$attributesString = '';
foreach ($attributes as $key => $value) {
$attributesString .= ' ' . htmlspecialchars($key) . '="' . htmlspecialchars($value) . '"';
Expand Down

0 comments on commit c342a0d

Please sign in to comment.