question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[refinementList] label is undefined

See original GitHub issue

Hello 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
bobylitocommented, Apr 23, 2018

Fixed

0reactions
bobylitocommented, Oct 19, 2017

Thanks @cmalard. I happen to be working on another related issue. I’ll come up with something 😃 (thanks @Haroenv for reopening the issue)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found