From a6d727d4968555a02ae70896fdaa2df131c34789 Mon Sep 17 00:00:00 2001 From: Martin Vagovszky Date: Tue, 24 Sep 2024 09:49:39 +0200 Subject: [PATCH] Fixes contributte/forms-bootstrap#100 --- src/Inputs/UploadInput.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Inputs/UploadInput.php b/src/Inputs/UploadInput.php index b524300..1647c38 100644 --- a/src/Inputs/UploadInput.php +++ b/src/Inputs/UploadInput.php @@ -53,12 +53,6 @@ public function getControl() $el = Html::el('div', ['class' => [BootstrapForm::getBootstrapVersion() === BootstrapVersion::V5 ? null : 'custom-file']]); $el->addHtml($control); - $el->addHtml( - Html::el('label', [ - 'class' => [BootstrapForm::getBootstrapVersion() === BootstrapVersion::V5 ? 'form-label' : 'custom-file-label'], - 'for' => $this->getHtmlId(), - ])->setText($this->buttonCaption) - ); return $el; }