Skip to content

Dropdown Refinementlist closes on change #444

Open
@stephanemartinw

Description

@stephanemartinw

🐛 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions