Skip to content

Commit

Permalink
added fix to combinations
Browse files Browse the repository at this point in the history
  • Loading branch information
kancijan committed Aug 14, 2024
1 parent cb2681f commit 6e4967c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Helpers/TailwindTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,10 @@ public static function getTwClasses($attributes, $manifest, ...$custom)
foreach ($conditions as $key => $attrConditions) {
$value = Helpers::checkAttr($key, $attributes, $manifest, true);

if (\is_bool($value)) {
$value = $value ? 'true' : 'false';
}

$isArrayCondition = \is_array($attrConditions);

if (!$value) {
Expand Down

0 comments on commit 6e4967c

Please sign in to comment.