Search code examples
laravellaravel-livewire

Laravel Livewire reloads page and therefore removes certain classes


First, let me show you my problem before explaining it.

Livewire problem

I use wire:model.lazy="date" to define the date, but whenever livewire detects the execute. The page switches back to it's default layout. Which means the d-none class is removed from the class I clicked on. Is their a way to prevent this?


Solution

  • 
    <div wire:ignore>
        YOUR CODE
    </div>
    
    

    Did the trick