Instantsearch.js: Problem with sortBySelector cssClasses

Created on 18 Oct 2017  路  7Comments  路  Source: algolia/instantsearch.js

Hi,
I have a problem on instant search v2, select classes in instantsearch.widgets.sortBySelector doesn't work.
I try
search.addWidget( instantsearch.widgets.sortBySelector({ container: '#results-sort', indices: options.indices, cssClasses: { select: 'form-control' } }) );

And form-control class is not display.
Please I need help 馃槱

Needs Investigation

Most helpful comment

My bad, actually this has been fixed in 2.2.0 with https://github.com/algolia/instantsearch.js/pull/2423

If you upgrade it should be fixed.

All 7 comments

Thanks @renanbronchart for the issue. I am trying to reproduce the issue 馃憤

Which version of InstantSearch.js are you using? I've tried with our latest version and it seems to works.

Thanks for response, I use gem algoliasearch-rails for ruby on rails application.
And I use cdn https://cdn.jsdelivr.net/npm/[email protected]/dist/instantsearch.min.js for instant search.

Can you show me on example to use select classes in sortBySelector

I saw your example, actually this work at you, but not on my side :/

Do you have a link where I can see the behaviour? Maybe a jsFiddle with your code? That would be very helpful, thanks a lot. Feel free to reopen the issue if it's not working for you.

My bad, actually this has been fixed in 2.2.0 with https://github.com/algolia/instantsearch.js/pull/2423

If you upgrade it should be fixed.

Thanks a lot !! It work with 2.2.0 !!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jvreeken picture jvreeken  路  3Comments

jvreeken picture jvreeken  路  3Comments

proudlygeek picture proudlygeek  路  4Comments

bobylito picture bobylito  路  3Comments

francoischalifour picture francoischalifour  路  3Comments