Closed ymzoughi closed 6 years ago
Please update to the latest version. It should start working.
Thank you, now it works.
Hello @metagrover , please the problem occurred another time !
Hi @ymzoughi, can you share the codesandbox link where you're seeing this problem?
<ResultCard
showResultStats
className="autorobot-cards"
componentId="result_card"
size={12}
dataField="marque.keyword"
pagination
onQueryChange={(prevQuery, nextQuery) => {
this.queryChanged(prevQuery, nextQuery);
}}
sortOptions={[
{ label: 'Date descendante', dataField: 'inseredate', sortBy: 'desc' },
{ label: 'Date ascendante', dataField: 'inseredate', sortBy: 'asc' },
{ label: 'Prix ascendant', dataField: 'prix', sortBy: 'asc' },
{ label: 'Prix descendant', dataField: 'prix', sortBy: 'desc' },
]}
react={{
and: [
'energie',
'searchbox',
'carsmodel',
'carsbrand',
'cardate',
'drivenrange',
'ratingsSensor',
'pricerange',
],
}}
onData={this.onData}
onResultStats={this.onResultStats}
/>
<MultiList
componentId="carsbrand"
dataField="marque.keyword"
size={100}
showSearch={false}
react={{
and: [
'result_card',
'searchbox',
'carsmodel',
'cardate',
'drivenrange',
'pricerange',
'ratingsSensor',
],
}}
onValueChange={this.onBrandValueChange}
renderListItem={this.renderListItem}
/>
in fact the problem is that when using two ResultCard in the same page
I think #362 is related. Will look into this 👍
We're using a single ResultCard component and onQueryChange is not firing on MultiList and DataSearch Components.
Just upgraded from v2.3.2 to v2.6.2
@metagrover noticed this is still marked as closed. Just checking if it's on your radar?
Fixed with v2.6.5
🎉
Issue Type: Bug
Platform: ReactiveSearch for Web
Description: onQueryChange Not fired when query change
Minimal reproduction of the problem with instructions:
Reactivesearch version: 2.2.3
Browser: [all | Chrome XX | Firefox XX | Edge XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]