bugfix: search and paginate #670
@clement I would need your help on this. The current problem is that I cannot filter and paginate at the same time. If I type something in a search input, I stay on the page 2. Example:
<solid-form-search
id="search"
fields="username"
></solid-form-search>
<solid-display
data-src="data/list/users.jsonld"
fields="username"
paginate-by="2"
filtered-by="search"
></solid-display>
The problem is linked to this commit: 2bae3312
In this one, you added the search form initialization in the filteredBy
callback, which is useful because it allows us to change the attribute. But at the same time, the context
, which allow us to track the researchs, is not passed to the filterCallback, which is causing the bug.
Any idea of how to keep both features?
Edited by Matthieu Fesselier