Skip to content

Commit

Permalink
Fix snippets when using Winter.TailwindUI
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers authored Nov 4, 2023
1 parent add656a commit e8dbc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/index/_sidepanel.htm
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<?php endif; ?>

<?php if (in_array('snippetList', $activeWidgets)) : ?>
<form class="layout <?= !($activeWidgets[0] === 'snippetList') ? 'hide' : ''; ?>" data-content-id="snippet" data-object-type="snippet" data-type-icon="icon-newspaper-o" onsubmit="return false">
<form class="layout <?= !($activeWidgets[0] === 'snippetList') ? 'hide' : ''; ?>" data-content-id="snippets" data-object-type="snippet" data-type-icon="icon-newspaper-o" onsubmit="return false">
<?= $this->widget->snippetList->render() ?>
</form>
<?php endif; ?>
Expand Down

2 comments on commit e8dbc3b

@fbndny
Copy link

@fbndny fbndny commented on e8dbc3b Apr 26, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Due to this change I cannot get my snippets listed in the sidebar anymore. The javascript won't remove the .hide class.

@LukeTowers
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you using the Tailwind UI plugin or the default backend skin @fbndny?

Please sign in to comment.