From c4013bfde7adc26bc07ea0e69d4e5996f032ba2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=A2=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D0=BE=D0=B2?= Date: Sat, 14 Aug 2021 06:24:19 +0500 Subject: [PATCH 1/4] fix default ActiveField::hintOptions --- src/ActiveField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActiveField.php b/src/ActiveField.php index 8cc8655..261d9c9 100644 --- a/src/ActiveField.php +++ b/src/ActiveField.php @@ -156,7 +156,7 @@ class ActiveField extends \yii\widgets\ActiveField /** * {@inheritdoc} */ - public $hintOptions = ['class' => ['widget' => 'form-text', 'text-muted'], 'tag' => 'small']; + public $hintOptions = ['class' => ['widget' => 'form-text', 'text-muted'], 'tag' => 'div']; /** * @var null|array CSS grid classes for horizontal layout. This must be an array with these keys: * - 'offset' the offset grid class to append to the wrapper if no label is rendered From a65c89425e3ad5280e6f6234238412052bd56e56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=98=D0=B3=D0=BE=D1=80=D1=8C=20=D0=A2=D0=B0=D1=80=D0=B0?= =?UTF-8?q?=D1=81=D0=BE=D0=B2?= Date: Sat, 14 Aug 2021 19:52:47 +0500 Subject: [PATCH 2/4] fix default ActiveField::hintOptions --- src/ActiveField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ActiveField.php b/src/ActiveField.php index 261d9c9..353df0d 100644 --- a/src/ActiveField.php +++ b/src/ActiveField.php @@ -494,7 +494,7 @@ class ActiveField extends \yii\widgets\ActiveField { $config = [ 'hintOptions' => [ - 'tag' => 'small', + 'tag' => 'div', 'class' => ['form-text', 'text-muted'], ], 'errorOptions' => [ From 9fc991c2dbfbf651856e6d7df3ecdea23b3e82be Mon Sep 17 00:00:00 2001 From: simialbi Date: Mon, 16 Aug 2021 09:09:10 +0200 Subject: [PATCH 3/4] Update test to div rendering --- tests/ActiveFormTest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/ActiveFormTest.php b/tests/ActiveFormTest.php index 7782109..4abfd3f 100644 --- a/tests/ActiveFormTest.php +++ b/tests/ActiveFormTest.php @@ -291,7 +291,7 @@ HTML;
-Your username must be at least 4 characters long +
Your username must be at least 4 characters long
HTML; @@ -299,7 +299,7 @@ HTML;
-Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji. +
Your password must be 8-20 characters long, contain letters and numbers, and must not contain spaces, special characters, or emoji.
HTML; @@ -330,7 +330,7 @@ HTML;
-Your username must be at least 4 characters long +
Your username must be at least 4 characters long
Username cannot be blank.
HTML; From 68be634fb9c857db5b0f744496f5e5051cf2c96d Mon Sep 17 00:00:00 2001 From: simialbi Date: Mon, 16 Aug 2021 09:11:46 +0200 Subject: [PATCH 4/4] Updated CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f3fdf1..fc1895e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ Yii Framework 2 bootstrap5 extension Change Log 2.0.2 under development ----------------------- -- no changes in this release. +- Bug #9: fixed default ActiveField::hintOptions (dicrtarasov) 2.0.1 August 11, 2021