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(toggleRefinement): don't set off value in getWidgetRenderState #4912

Merged
merged 1 commit into from
Sep 30, 2021

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Sep 29, 2021

Summary

This was added in the migration from render to getWidgetRenderState, but actually getWidgetSearchParameters already takes this in account, and i can't find any situations where "off" gets erased.

Added a test to make sure getWidgetAttribute works when "off" is given, but it's straightforward now

Result

Nothing really changes, except toggle with an off works in dynamic widgets works now and a little bit less code

This was added in the migration from render to getWidgetRenderState, but actually getWidgetSearchParameters already takes this in account, and i can't find any situations where "off" gets erased.

Added a test to make sure getWidgetAttribute works when "off" is given, but it's straightforward now
@Haroenv Haroenv requested review from a team, tkrugg and francoischalifour and removed request for a team September 29, 2021 09:52
@codesandbox-ci
Copy link

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 a77530e:

Sandbox Source
InstantSearch.js Configuration

@Haroenv Haroenv merged commit 69525bf into master Sep 30, 2021
@Haroenv Haroenv deleted the fix/toggle-remove-off-gwrs branch September 30, 2021 08:12
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.

2 participants