1,133 questions
3
votes
1
answer
36
views
Laravel Livewire/Eloquent: Position update fails when moving task to first position (index 1) of a different list
My application uses Laravel Livewire with Alpine.js/SortableJS for drag-and-drop reordering of tasks between status columns. The tasks have a status (string) and a position (integer) in the database.
...
-1
votes
1
answer
156
views
Binding Livewire nested data insertion using Alpine js
In screenshot below i have a set of data insertion which contains each parent might have o to 6 children :
when i try to get data in my livewire blade (the part facing issue) like below:
<div ...
0
votes
0
answers
105
views
ServiceWorker not reacting on periodicSync event
In the web app, it looks good since onSuccess gets called, but the only console log from the service worker I get is the one from initializing it. Somehow, it looks like listening for the periodicsync ...
1
vote
0
answers
90
views
Convert Alpine.js on-click to Datastar data-on*
I have some links on my site which currently uses alpine.js to trigger a function that scrolls to a div on the page and I wish to convert this to use Datastar.js
This is what is currently in the base....
0
votes
1
answer
86
views
loader is not working in livewire when dispatch event from class
I need to make loader while click on date. Then loader should work on timeslot before loading the slot
Below shows short code
Dateslot class
Class Dateslot extends component
{
Public function ...
1
vote
1
answer
81
views
How to refer to the entire x-data object inside the <div> itself where it was defined?
update: the answer is use $data and its actually in the alpinejs docs page
I'm new to Alpine.js. Below code works fine, but I'm trying to find a way to refer to the whole x-data object in the line
--&...
1
vote
0
answers
98
views
Format Alpine.js code in templ in Visual Studio Code
I am using AlpineJS with Templ and golang in Visual Studio Code. How can I get format document (Ctrl+Shift+i) to work for the x-data, x-init, etc attributes to work in Visual Studio Code?
I currently ...
1
vote
0
answers
88
views
Instant response of the Like/Dislike buttons using Alpine.js in Livewire 3
I have logic for like/dislike button in two separate livewire components (LikeButton.php/DislikeButton.php)
The problem is I want like/dislike buttons react immediately after clicking
After clicking I ...
0
votes
1
answer
127
views
Responsive sidebar filters overlay on mobile and static on desktop with Tailwind CSS & Alpine.js
I’m trying to build a self-contained example of an e-commerce “Product Search” layout where:
On mobile (width < 768px) – the filter sidebar is hidden by default, slides in from the left over a ...
1
vote
1
answer
95
views
How to interrupt the timeout that hides the toast? [closed]
I'm showing a toast alert, controlling visibility with alpinejs, and want the alert to dim after a couple of seconds and be hidden after some more seconds unless the mouse hovers over it.
I got the ...
0
votes
0
answers
134
views
Livewire component deep inside @foreach gets uncaught (in promise) Component not found
Livewire version
v3.6.2
Laravel version
v11.44.2
PHP version
PHP 8.3
What is the problem?
I have nested livewire components in the following way (I am not sure if this information is relevant)
...
0
votes
0
answers
147
views
display livewire validation errors in alpine js x-for template
I have a Laravel 10, Livewire 3, Alpine JS application. On one of the blade files, I use the alpine x-for to loop through and add an input for each entry. I need to validate each input on change. I'm ...
0
votes
0
answers
33
views
Issue with Saving Dynamic Formset Data on Frontend: Event Dates and Times Not Persisting
I’m facing an issue where dynamic formsets (for event dates and times) on the frontend are not saving correctly. The form is properly rendered, and new event dates and times are added dynamically ...
0
votes
0
answers
47
views
Recursive category Livewire 3.x and AlpineJS 3.x
I have created a recursive category display using Livewire 3.x and AlpineJS 3.x The categories are stored in the database. Everything is working except for the activeDropdown function. When I open a ...
0
votes
0
answers
92
views
Accessibility for Screen Readers on Stepper in Modal
Focus management in Alpine.js modal doesn't properly redirect screen readers between steps
The Problem
In my TALL (+Fillament) stack app, I have a multi-step modal dialog using Alpine.js and Filament ...
0
votes
0
answers
60
views
Form submission is not working with when using Alpinejs to pass to livewire component
I have a problem when passing form value to livewire component while the form is inside alpinejs. When I click the submit button, the only thing happening is page reloaded and the collapse closed
When ...
1
vote
1
answer
153
views
Automatically trim text using Alpine.js
How can I use Alpine.js to automatically trim text in an input or textarea?
0
votes
0
answers
42
views
Data not refreshing inside template in Alpine JS
For some reason the list is not updating. Any ideas why?
The function is called and the entry is removed properly. But it keeps on showing the old list along with the removed entry.
(I have not ...
-2
votes
1
answer
67
views
Uncaught ReferenceError: error2 is not defined - Livewire - Filamentphp:
im having this issue with my laravel-filamentphp code
My login form is disabled... when i enter my credentials and press the login button i get the above errors in the console... Please help me to ...
0
votes
1
answer
86
views
Alpine Expression Error: cards is not defined
I have this views/Home.html:
<div x-data="cards">
<h2>Bienvenue sur SwiftDeli !</h2>
<p>
Commencez à créer et partager des recettes, ingrédients et listes de
...
0
votes
2
answers
290
views
Livewire wire:click Not Working Inside Alpine.js x-data Directive
I'm encountering an issue where Livewire's wire:click method doesn't work inside an Alpine.js x-data directive. Here's a breakdown of my setup:
Inside routes/web.php,
Route::get('/product/{slug}', [...
0
votes
0
answers
103
views
Echarts tooltip and resize not working in laravel livewire alpine js setup
I have implemented echart line and bar charts for my laravel project. I am using livewire with alpine js to show the chart. Chart shows up with the data I am passing but there is few problems. The ...
1
vote
1
answer
158
views
Can I bind x-transition in alpine.js like :x-transition:leave-end?
Can I use Alpine.js to set a variable within x-data and bind my animation effects based on the swipe direction? Currently, it doesn't work when I try to do it this way.
:x-transition:leave-end=&...
1
vote
1
answer
180
views
Binding Alpine.js Click Events to Dynamically Rendered JSX Components in Astro.js
I can't seem to bind the Alpine click event when I dynamically render content in Astro.js.
This is an example of that :
<div class="grid grid-cols-1 min-[450px]:grid-cols-2 md:grid-cols-4 xl:...
0
votes
2
answers
85
views
External libraries are not functioning in the newly loaded HTMX page
I'm trying to load external scripts dynamically with HTMX, but the libraries don't work on the newly loaded page.
Can anyone provide a simpler solution than the one in my answer in
the answer section?...