Comments (10)
It seems something is wrong with dataField type in MultiList. Use role.keyword
instead of role
and see if the error goes away. Also you should use search-box
instead of data-search
in v3
. Refer migration guide for other changes.
Also can you check by removing sortOptions key passed to ReactiveList, so we can just know the root cause if above doesn't work.
from reactivesearch.
on searching also, I am getting same error
<search-box
placeholder="Search Registrants..."
className="appbase-search"
:innerClass="{
list: 'search-bar-list'
}"
queryFormat="and"
filterLabel="Search"
componentId="SearchUsers"
:dataField="['full_name']"
/>
from reactivesearch.
@deepak-sisodiya Based on the error message, the references for the use of the email
field for either sorting or aggregations on the searchResults
componentId. The code snippet you've shared looks fine to me, as I see that you're using email.keyword
there. Perhaps narrow it down further based on the error message you see. You can try removing the component in question or sortOptions values to see if they help.
And for the searching use-case error, can you share the exact error message?
from reactivesearch.
@SavvyShah @siddharthlatest Thanks for the reply. I switched to other things in between.
today I checked it.
Here is the update.
- I removed sortOptions from ReactiveList , searching and filter for each column starts working now.
- I replaced the data-search with search-box, missed it while doing migration.
New issues
- we do not have sorting UI now. If we have sortOptions again, other things do not work.
- following code is not working for refresh list - this issues is not due to removing sortOptions,
refreshList: throttle(function () {
const datalist = this.$refs.datalist;
if (datalist) {
this.setLoadingRegistration(true);
if (!this.columns?.length) {
this.fetchColumns();
}
const currentPage = datalist.$el.__vue__.currentPageState;
datalist.$el.__vue__.setPage(currentPage + 1);
setTimeout(() => {
datalist.$el.__vue__.setPage(currentPage);
this.setLoadingRegistration(false);
}, 100);
} else {
LogRocket.info('Could not refresh by page change because reactivebase was not found!');
}
}, 2000),
error is - Cannot read properties of undefined (reading 'currentPageState').
Please help @SavvyShah @siddharthlatest
from reactivesearch.
@deepak-sisodiya Thanks for the update, glad to see that you got the search UI working.
On the new issues, would you be able to reproduce these two issues with one of our public demos?
from reactivesearch.
@siddharthlatest where is public demo link?
from reactivesearch.
@siddharthlatest @SavvyShah I have refresh button outside of table, how can I set the setPage, is there any way for it.
from reactivesearch.
on refresh, I want to set page to 1
from reactivesearch.
@deepak-sisodiya For the public demo, you can use this: https://codesandbox.io/s/github/appbaseio/vue-quick-start/tree/step-5/?from-embed (It has searchbox and reactive list). See if you can reproduce the issue by including sort options and the page operation
from reactivesearch.
-
we do not have sorting UI now. If we have sortOptions again, other things do not work.
this is fixed by removing dataField and passing sortOptions -
following code is not working for refresh list
I changed the logic for it, seems working
thanks
from reactivesearch.
Related Issues (20)
- Auth error after upgrade to 3.43.5
- Hydration error after reloading search results or link to page with urlparams HOT 1
- Ability to provide url as a path without http or https
- Vue - getCamelCase function breaks u-r-l-params HOT 2
- No results after upgrading to 3.43.7 HOT 7
- DynamicRangeSlider not rendering HOT 2
- React 18 Support HOT 3
- Not working with Vite Dev Mode HOT 5
- ReactiveComponent URLParams has no effect if using CustomQuery and not setQuery HOT 5
- Unable to trigger "Show all" button action for <MultiList/> via keyboard
- Error if no credentials in ReactiveBase even if not using AppBase HOT 4
- Unable to load vue-slider ReferenceError: require is not defined (Vue.JS/Vite)
- The msearch request must be terminated by a newline [\n] HOT 1
- ReactiveComponent type HOT 2
- MultiList showLoadMore WITH nestedField
- Reactivelist re render when change page
- RangeInput Error for prop in Typescript HOT 1
- ReferenceError: AbortController is not defined in 3.45.0 because of recent changes HOT 5
- Can't resolve 'vue/server-renderer' HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reactivesearch.