Skip to content

Bug Report - Issue when i delete column filter #617

@JoaVitoTavares

Description

@JoaVitoTavares

This issue occurs when i rapidly click to delete the column filter. Recently encountered a bug in my application and traced it to the following file:

mediconesystems/livewire-datatables/src/Http/Livewire/LivewireDatatable.php:1001

The line 1001 is: if (count($this->activeSelectFilters[$column]) < 1) { it belongs to the following function:

public function removeSelectFilter($column, $key = null)
{
unset($this->activeSelectFilters[$column][$key]);
$this->visibleSelected = $this->selected;
if (count($this->activeSelectFilters[$column]) < 1) {
unset($this->activeSelectFilters[$column]);
}
$this->setPage(1);
$this->setSessionStoredFilters();
}
When testing the same functionality on the livewire tables demo i encountered a similar problem in the "weapon names" column. Here's a screenshot for reference:

image

I conducted this test on the Google Chrome and Firefox utilizing a Linux Mint 19.3 system OS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions