[refinementList] label is undefined
See original GitHub issueHello there,
The value label
provided in refinementList - templates.item config disappear after a search.
This is the object provided at init:
{
"count": 8,
"isRefined": false,
"label": "Prine",
"value": "Prine",
"highlighted": "Prine",
"url": "#",
"cssClasses": {
"root": "ais-refinement-list",
"header": "ais-refinement-list--header",
"body": "ais-refinement-list--body",
"footer": "ais-refinement-list--footer",
"list": "ais-refinement-list--list",
"item": "ais-refinement-list--item",
"active": "ais-refinement-list--item__active",
"label": "ais-refinement-list--label",
"checkbox": "ais-refinement-list--checkbox",
"count": "ais-refinement-list--count"
}
}
After a search, as sent by the API http://hzp025yf0p-dsn.algolia.net/1/indexes/*/queries?x-algolia-agent=Algolia%20for%20vanilla%20JavaScript%20(lite)%203.24.4%3Binstantsearch.js%202.1.6%3BJS%20Helper%202.21.2&x-algolia-application-id=...&x-algolia-api-key=...
:
{
"value": "Prine",
"highlighted": "<em>P</em>rine",
"count": 8,
"isRefined": false,
"url": "#",
"cssClasses": {
"root": "ais-refinement-list",
"header": "ais-refinement-list--header",
"body": "ais-refinement-list--body",
"footer": "ais-refinement-list--footer",
"list": "ais-refinement-list--list",
"item": "ais-refinement-list--item",
"active": "ais-refinement-list--item__active",
"label": "ais-refinement-list--label",
"checkbox": "ais-refinement-list--checkbox",
"count": "ais-refinement-list--count"
}
}
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
React InstantSearch RefinementList transformItems not working
The transformItems function has one parameter: items . It expects in return to have it back. items is an array of objects with...
Read more >Widget refinementList - Color.label (name,hexacode) - Open Q&A ...
Following this question and anwser Now have my color widget read the attribute color.label as follow: search.addWidget( instantsearch.widgets.
Read more >@algolia/react-instantsearch-widget-size-refinement-list - npm
React InstantSearch widget that filters the dataset based on size facet values. Latest version: 1.0.3, last published: 6 months ago.
Read more >RefinementList Facet - Searchkit
label, UI label for facet. Used by @searchkit/elastic-ui components. MultipleSelect, Boolean. Default False. Filters operates as an OR.
Read more >NumericMenu - InstantSearch specs
... class="ais-NumericMenu-item ais-NumericMenu-item--selected"> <label class="ais-NumericMenu-label"> ... .ais-NumericMenu-item, the refinement list item.
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
Fixed
Thanks @cmalard. I happen to be working on another related issue. I’ll come up with something 😃 (thanks @Haroenv for reopening the issue)