mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 05:14:04 +00:00
Merge pull request #20 from archtechx/x-cloack-fix
Fix Alpine x-cloak not working for banner
This commit is contained in:
commit
59205f1326
1 changed files with 1 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="z-50 fixed bottom-0 inset-x-0 pb-2 sm:pb-5" x-data="{ show: true, hide() { window.localStorage.show_banner = 'hide'; this.show = false } }" x-init="
|
<div x-cloak class="z-50 fixed bottom-0 inset-x-0 pb-2 sm:pb-5" x-data="{ show: true, hide() { window.localStorage.show_banner = 'hide'; this.show = false } }" x-init="
|
||||||
show = window.localStorage.show_banner !== 'hide'
|
show = window.localStorage.show_banner !== 'hide'
|
||||||
" x-show="show">
|
" x-show="show">
|
||||||
<div class="max-w-screen-xl mx-auto px-2 sm:px-6 lg:px-8">
|
<div class="max-w-screen-xl mx-auto px-2 sm:px-6 lg:px-8">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue