Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(connectToggleRefinement): fix onFacetValue/offFacetValue on render when using arrays for on/off #4449

Merged
merged 3 commits into from
Jul 23, 2020

Conversation

Kocal
Copy link
Contributor

@Kocal Kocal commented Jul 18, 2020

Summary

I was working on #4445 and I found a bug introduced by myself in #4420. 😐

The bug is in render method, where onFacetValue and offFacetValue could be wrong when using arrays for on or off.

I've added a failing test:
Capture d’écran de 2020-07-18 23-55-57

Result

render method now handle onFacetValue and offFacetValue correctly when using arrays for on and off options.

Thanks!

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 18, 2020

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f570974:

Sandbox Source
InstantSearch.js Configuration

@tristanbes
Copy link

nice catch !

@eunjae-lee eunjae-lee changed the title fix(connector:toggle-refinement): fix onFacetValue/offFacetValue on render when using arrays for on/off fix(connectToggleRefinement): fix onFacetValue/offFacetValue on render when using arrays for on/off Jul 22, 2020
@eunjae-lee
Copy link
Contributor

CircleCI didn't run. I ran the tests and they all passed on my computer, so I'm merging it.

@eunjae-lee eunjae-lee merged commit fd3e83f into algolia:master Jul 23, 2020
@Kocal Kocal deleted the fix/toggle-refinements-list branch July 23, 2020 08:35
@Kocal
Copy link
Contributor Author

Kocal commented Jul 23, 2020

Thanks!

Is there a reason for CircleCI not running? It's not the first time I see this. :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants