b-table: Filter Debounce does not work with computed properties or data attributes in the custom filter function
See original GitHub issueDescribe the bug
filter-debounce
no longer works if the custom filter-function
attempts to access a data or computed property.
Steps to reproduce the bug
This fiddle will illustrate the issue: https://jsfiddle.net/0jd54wpn/1/
Notice you can try it by accessing the computed property, the data property, or both. Just comment out and see the results. Comment both if
statements in filterFunction
to see debounce working as expected.
Expected behavior
I expect the debouncer to work no matter what you need or try to access from within the custom filter function.
Versions
Libraries:
- BootstrapVue: 2.0.2
- Bootstrap: 4.3.1
- Vue: 2.6.10
Environment:
- Device: Windows
- OS: 10 Pro
- Browser: Chrome
- Version: 77.0.3865.90
Demo link
Additional context
Issue Analytics
- State:
- Created 4 years ago
- Comments:27 (15 by maintainers)
Top Results From Across the Web
[Solved]-How to use computed function to filter?-Vue.js
A Vue.js filter is essentially a function that takes a value, processes it, and then returns the processed value. Here is an example...
Read more >Common Vue Problems — Debouncing Computed Properties ...
We have the filtered method that filters our code in 2 ways. this.checkedRegions has the checked values, so we can use filter with...
Read more >VueJS computed filter function not working - Stack Overflow
This is how you should implement the search filter: ... toUpperCase(); return filter ? this.data.filter(item => { return item.title.
Read more >Table | Components - BootstrapVue
For displaying tabular data. supports pagination, filtering, sorting, custom ... properties (make sure your field keys do not conflict with these names): ...
Read more >Migrating from Vue 1.x - w3resource
If you are not currently following best practices, Vue 2.0 will try harder ... To find examples of the debounce attribute, run the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
BootstrapVue
v2.1.0
has been released, which has added debouncing support tob-form-input
(use this instead of thefilter-debounce
feature of<b-table>
)@WillGoldstein Bootstrap v2.0.4 has been released with further performance improvements for b-table/b-table-lite