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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown Refinementlist closes on change #444

Open
1 task done
stephanemartinw opened this issue Mar 14, 2023 · 1 comment
Open
1 task done

Dropdown Refinementlist closes on change #444

stephanemartinw opened this issue Mar 14, 2023 · 1 comment

Comments

@stephanemartinw
Copy link

馃悰 Current behavior

// Creation of the refinementListDropdown widget
const CulinaryCatsDropdown = createDropdown(
instantsearch.widgets.refinementList,
{ closeOnChange: false }
);

does not avoid the dropdown to close when the user clicks an item in the list.

馃攳 Steps to reproduce

Go to tha attached codesandbox url, and start the search with 'test' as a value for the searchbox.
Then, open the dropdown and click an item: the dropdown closes even if closeOnChange :false has been defined.

Live reproduction

https://codesandbox.io/s/keen-lake-pp46dw

馃挱 Expected behavior

The dropdown should remain open after the user clicks on a list item, if closeOnChange = false

Package version

latest instantsearch.js 4.52.0 and algoliasearch 4.15.0

Operating system

macOS

Browser

Chrome

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Haroenv
Copy link
Contributor

Haroenv commented Mar 14, 2023

This is issue with a custom widget, and thus should be opened in the place you found that example, not here :)

@Haroenv Haroenv transferred this issue from algolia/instantsearch Mar 14, 2023
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

No branches or pull requests

2 participants