From a3b52b45197e7766117600461f345528ee327ca8 Mon Sep 17 00:00:00 2001 From: Simon Karlen Date: Wed, 5 Jan 2022 09:41:34 +0100 Subject: [PATCH] fixed strange yii2 behavior in css class handling --- src/BaseHtml.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/BaseHtml.php b/src/BaseHtml.php index c919fb5..1baf6df 100644 --- a/src/BaseHtml.php +++ b/src/BaseHtml.php @@ -27,6 +27,13 @@ abstract class BaseHtml extends \yii\helpers\Html * @see getId() */ public static $autoIdPrefix = 'i'; + /** + * @var bool whether to removes duplicate class names in tag attribute `class` (fix strange yii2 behavior since 2.0.44) + * @see mergeCssClasses() + * @see renderTagAttributes() + * @since 2.0.3 + */ + public static $normalizeClassAttribute = true; /**