vuetifyjs / vuetifyjs/vuetify

[Feature Request] Data Table Search strategies to exclude non searched item

Open
#22,867 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C: VDataTable T: bug
Dominant language
TypeScript
Stars
41k
Forks
7.1k
Avg merge
1d 21h
Merged PRs (30d)
11

Description

Problem to solve

When having a DataTable with search + select-strategy="page". If you click on the "Select all button" it will also select items filtered out by the search.

+ example of weird behaviour encountered with this issue:

  • having 5 items per page set
  • and having items: "t1", "t2", "t3", "t4", "aa". "t5"
  • and searching "t".

The "select-all" button will also select "aa" event if pagination indicates that there are 5 items

Proposed solution

select-strategy="page" also exclude from "select-all" button the items filtered out by search

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the DataTable handling for select-strategy="page" and the select-all action, then reproduce the reported case with five items per page and a search for "t". Done means selecting all excludes the filtered-out "aa" item while retaining the matching items.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.