Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flowbite offcancvas error with JavaScript #1049

Open
minaremonshaker opened this issue Mar 18, 2025 · 0 comments
Open

flowbite offcancvas error with JavaScript #1049

minaremonshaker opened this issue Mar 18, 2025 · 0 comments

Comments

@minaremonshaker
Copy link

hi,
i am using Flowbite off canvas to make a sidebar from my website when i click on the hamburger to oe the sidebar i got not problem but when i

Image

click on the x inside the side bar to close it i got this error in the console #

<div id="navigation-sidebar" class="lg:hidden fixed top-0 left-0 z-40 h-screen p-4 overflow-y-auto transition-transform -translate-x-full duration-700 xs:w-full bg-info" tabindex="-1" aria-labelledby="navigation-sidebar" aria-hidden="true">
    <div class="grid grid-cols-2 mt-8 ">
        <div class="grid justify-start items-center">
            <x-logo viewbox="0 0 512 512" :sidebar_logo="true"/>
        </div>

        <div class="grid justify-end items-center">
            <button id="close" type="button" data-drawer-hide="navigation-sidebar" aria-controls="navigation-sidebar" class="text-slate-500 hover:text-white">
                <svg class="xs:w-4 xs:h-4" aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 14 14">
                    <path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m1 1 6 6m0 0 6 6M7 7l6-6M7 7l-6 6"/>
                </svg>
                <span class="sr-only">Close menu</span>
            </button>
        </div>

    </div>
    <div class="grid grid-cols-1 xs:mt-32 items-center">
        <ul class="grid grid-rows-4 xs:w-full justify-center items-stretch gap-6 ">
            <li class="hover:border-b-2  border-white border-spacing-4">
                <a href="{{ route("Home.index") }}" class="font-roboto font-bold xs:text-5xl md:text-6xl  grid grid-cols-2 items-center justify-end py-2 px-3 text-white md:p-0 after:mb-1 hover:text-warning hover:animate-bounce" aria-current="page">
                    <x-svg.home-component id="Icons_Layers" class="text-white w-10 "  viewBox="0 0 512 512" data-name="Icons_Layers" />
                    <span class="xs:-ml-20 md:-ml-24">Home</span>
                </a>
            </li>
            <li class="hover:border-b-2 border-white">
                <a href="#" class="font-roboto font-bold xs:text-5xl md:text-6xl grid grid-cols-2 items-center justify-end  py-2 px-3 text-white md:p-0 after:mb-1 hover:text-warning hover:animate-bounce">
                    <x-svg.books-component class="text-white w-10" viewBox="0 0 512 512" fill="currentColor"/>
                    <span class="xs:-ml-20 md:-ml-24">Books</span>
                </a>
            </li>
            <li class="hover:border-b-2 border-white">
                <a href="#" class="font-roboto font-bold xs:text-5xl md:text-6xl grid grid-cols-2 items-center justify-end  py-2 px-3 text-white md:p-0 after:mb-1 hover:text-warning hover:animate-bounce">
                    <x-svg.question-mark-component class="text-white w-10" viewBox="0 0 24 24" fill="currentColor"/>
                    <span class="xs:-ml-20 md:-ml-24">Our-Story</span>
                </a>
            </li>
            <li class="hover:border-b-2 border-white">
                <a href="#" class="font-roboto font-bold xs:text-5xl md:text-6xl grid grid-cols-2 items-center justify-end py-2 px-3 text-white md:p-0 after:mb-1 hover:text-warning hover:animate-bounce">
                    <x-svg.phone-component class="w-10 text-white" viewBox="0 0 512 512" fill="currentColor"/>
                    <span class="xs:-ml-20 md:-ml-24">Contact</span>
                </a>
            </li>
        </ul>
    </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant