rappasoft / laravel-livewire-tables

A dynamic table component for Laravel Livewire
https://rappasoft.com/docs/laravel-livewire-tables/v2/introduction
MIT License
1.7k stars 319 forks source link

[Bug]: Page Refreshing before generating excel on bulk export #1684

Closed NoxzMSTR closed 2 months ago

NoxzMSTR commented 3 months ago

What happened?

When i goto the page where i used the rappasoft/laravel-livewire-tables and i select the list and bulk action shown it works fine but if it is large then it is still processing the export and refresh the page and when i filter and try to use it then it also refresh page before generating excel file

How to reproduce the bug

You need to have at least 500 list data and try to export them with or without filter you will get the bug of refreshing before generated excel thats what happening to me

Package Version

3.2.0

PHP Version

8.1.x

Laravel Version

10

Alpine Version

3.4.2

Theme

Bootstrap 5.x

Notes

No response

Error Message

No response

NoxzMSTR commented 3 months ago

currently i fixed it by changing the code in the bulk-actions.blade.php

` <a href="#" @if($component->hasConfirmationMessage($action)) wire:confirm="{{ $component->getBulkActionConfirmMessage($action) }}" @endif wire:click="{{ $action }}" wire:key="{{ $tableName }}-bulk-action-{{ $action }}" @class([ 'dropdown-item' => $component->isBootstrap(), ])

{{ $title }} `

to

<button @if ($component->hasConfirmationMessage($action)) wire:confirm="{{ $component->getBulkActionConfirmMessage($action) }}" @endif wire:click="{{ $action }}" wire:key="{{ $tableName }}-bulk-action-{{ $action }}" @class([ 'dropdown-item' => $component->isBootstrap(), ])> {{ $title }} </button>

stale[bot] commented 2 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.