Questions tagged [laravel-livewire-wireclick]

13 questions
1
vote
1 answer

How to Open Links in New Tabs with Laravel Livewire's wire:click.prevent

I'm using the wire:click.prevent attribute to navigate inside the app by dynamically loading components using $emit inside the click attribute. For example:
stefano di luca
  • 147
  • 1
  • 10
1
vote
1 answer

Livewire Autofill Input Box Based On Drop Down Selection

hello im new for livewire I'm trying to get input value based on dropdown value. when i select example drop-down value TOMATO in input show its price. i done this using jQuery but I want operate it in livewire without jQuery. Single table having…
1
vote
1 answer

Laravel / Livewire - Modal deletes first row

basically i am fetching some data from the database and i have a delete button that pops up a confirmation modal. After i click on delete it deleted the wrong id, doesn't matter witch row i want to delete it always deletes the first. This is my…
1
vote
1 answer

Laravel Livewire emit event in component with value not working

I have a blade. file with multiple livewire components:

Add A New Item

@livewire('libraries.catalog-item-create', ['categories' => $categories, 'library' => $library]) …
rretzko
  • 41
  • 3
0
votes
0 answers

experiencing a layout issue with Livewire navigation in Laravel, where the page is opening at the same scroll position as the previous page

I have a bug in livewire navigation when I use wire: navigation , when I click from home page to Contact it works fine it open the page without loading the browser but getting a issue at loading is , suppose if I am at footer of home page or down…
0
votes
0 answers

Modal not oppening in Laravel Livewire

I tried this modal in my code, the structure seems to be correct but for some reason it cannot open when I click the respective button (I created 2 buttons for test in the same modal). It's the first time it happens while I work with…
0
votes
2 answers

Laravel 10 - Livewire wire:clicks won't work

I'm using Livewire 2.12 and Laravel 10.10. I have a problem in Livewire, when I'm clicking on the sign in button, the "login" function in the Login.php component is not executed. Could the reason be that I'm using the "@yield('content')" sections…
0
votes
1 answer

how to solve the filter button on livewire not working?

I have a problem when I click the active or nonactive filter button, the table results do not change at all. I want when I click the active button the results of the table will show only records that have active status. there are no errors but when…
0
votes
2 answers

Livewire component renders element attribute in wrong order and breaks the wire:click event

I'm working on a livewire component that acts as a file browser. Initially a list of files and folders is passed to the components blade, if the item is a directory an anchor is returned which changes the current path to the items name which…
0
votes
1 answer

Is it possible to navigate through page by navbar without page refresh with Laravel Livewire and AlpineJS?

I am just wondering whether it's possible to navigate through navigation without any page refresh using Laravel Livewire and AlpineJS? I also want to keep the state of the clicked link of the navbar, so I can change it's color. Thanks
0
votes
0 answers

livewire "render" method must run instance of View

Hey I am trying to use livewire for the first time and I successfuly done the function and when its finish the function checkSingleLink() its shows this error : "render" method on [App\Http\Livewire\SingleAsset] must return instance of…
kaki
  • 103
  • 2
  • 9
0
votes
0 answers

initialData is null in livewire component when there is a two events in the same component

I am having two events in my component one is changing the layout and another one is sorting. Changing a layout basically it only replace a layout component inside a parent component. Now when i am calling a sorting then livewire giving me a error…
0
votes
0 answers

wire:click works but not wire:model

Sorry if this may sound too basic. I have this Laravel Livewire app that works for wire:click but any implementation of wire:model does not work? It doesn't update the values. What could have I missed?