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(panel): return value from dispose #3895

Merged
merged 1 commit into from
Jun 27, 2019
Merged

fix(panel): return value from dispose #3895

merged 1 commit into from
Jun 27, 2019

Conversation

samouss
Copy link
Contributor

@samouss samouss commented Jun 27, 2019

The return value of dispose is swallowed by the panel. It leads to issue when a widget refined wrapped by a panel is removed from the search. The refined values should be removed but since the return value is ignored the refinement persist. This PR aims to fix this issue.

Before

before

After

after

@samouss samouss requested a review from a team June 27, 2019 08:06
@algobot
Copy link
Contributor

algobot commented Jun 27, 2019

Deploy preview for instantsearchjs ready!

Built with commit 2e601ab

https://deploy-preview-3895--instantsearchjs.netlify.com

Copy link
Contributor

@Haroenv Haroenv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@samouss samouss merged commit bceb78f into develop Jun 27, 2019
@samouss samouss deleted the fix/panel branch June 27, 2019 09:34
eunjae-lee pushed a commit that referenced this pull request Jul 1, 2019
## [3.5.4](v3.5.3...v3.5.4) (2019-07-01)

### Bug Fixes

* **connectSortBy:** do not throw with wrong indexes ([#3824](#3824)) ([2a84ee2](2a84ee2))
* **deps:** update dependency instantsearch.js to v3.5.3 ([#3877](#3877)) ([463f3bb](463f3bb))
* **escape:** make sure that __escaped does not get removed ([#3830](#3830)) ([fbafd22](fbafd22))
* **getRefinements:** check for facet before accessing its data ([#3842](#3842)) ([aadc769](aadc769))
* **panel:** return value from dispose ([#3895](#3895)) ([bceb78f](bceb78f))
* **voiceSearch:** remove event listeners on stop ([#3845](#3845)) ([688e36a](688e36a))
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