Skip to content

table: empty filtered text shows unexpectedly when using a function #1517

@dominicbarnes

Description

@dominicbarnes

Currently, if you use a <b-table> with a filter function, the "empty" and "emptyfiltered" cases are not distinguishable. For example, if you use a filter function and the table is also empty, you will see the "emptyfiltered" case, when the "empty" case is expected.

The root cause is checking !!t.filter internally, which will always be truthy when using a function. The ideal solution would be to check the items array and compare that against the items being rendered. (not familiar with internals, so not sure if it's easy to do)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions