Git Product home page Git Product logo

Comments (3)

sudeepa88 avatar sudeepa88 commented on June 5, 2024

Could you please share the screenshot?

from mazer.

alfianchii avatar alfianchii commented on June 5, 2024

how to initialize dropdown menu i ' m using laravel with livewire 3 data-bs-toggle="dropdown" and notification-dropdown

Regarding your issue, you are currently experiencing an issue on Mazer w/ Laravel (Livewire). Therefore, you can create an issue, which related to Mazer w/ Laravel + Livewire, in Laravel Mazer. If it pleases you, please readdress this issue. Thanks.

from mazer.

mocfaisal avatar mocfaisal commented on June 5, 2024

how to initialize dropdown menu i ' m using laravel with livewire 3 data-bs-toggle="dropdown" and notification-dropdown

hey mate i'm using livewire 3 too on current project
if you build SPA application, and using attribute wire:navigate on a link Livewire 3 Navigate

Previously i'm having this issue, fixed when using attribute data-navigate-track, but the sidebar got bug like this issue #257

My configuration
set javascript file to like this

<script src="{{ asset('assets/backend') }}/compiled/js/app.js" data-navigate-once></script>

Add attribute data-navigate-once to load only once
And add the initialize sidebar when navigating to another component / page

<script data-navigate-once>
        document.addEventListener('livewire:navigated', () => {
            // NOTE Reinitialize Sidebar
            const sidebar = new window.Sidebar(document.getElementById("sidebar"), {
                recalculateHeight: true
            })
        });
</script>

So the dropdown at navbar will be solved

from mazer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.