From d380d451a5d9765538b57fcd3584a7473c1e28d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Proch=C3=A1zka?= Date: Wed, 27 Mar 2024 23:09:18 +0100 Subject: [PATCH] Implode keys of the class list --- src/UI/Actions/Traits/Control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/UI/Actions/Traits/Control.php b/src/UI/Actions/Traits/Control.php index ac451c5..fdacfb2 100644 --- a/src/UI/Actions/Traits/Control.php +++ b/src/UI/Actions/Traits/Control.php @@ -57,6 +57,7 @@ public function hasClass(string $name): bool $class = $this->control->getClass() ?? ''; if (is_array($class)) { + $class = array_keys($class); $class = implode(' ', $class); }