Skip to content

feat(refinementList): add option to disable selecting on searchbox submit #6649

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

Merged
merged 2 commits into from
Jun 12, 2025

Conversation

Haroenv
Copy link
Contributor

@Haroenv Haroenv commented Jun 11, 2025

By default when you submit the search box in a refinement list, it toggles the first item. In some cases this is not expected behaviour, so there's now an option searchableSelectOnSubmit that defaults to true to allow people to disable this behaviour.

Vue did not have this behaviour, so i didn't implement it in this PR either.

CR-8634

In a next major we can consider whether true or false should be the default.

…bmit

By default when you submit the search box in a refinement list, it toggles the first item. In some cases this is not expected behaviour, so there's now an option `searchableSelectOnSubmit` that defaults to true to allow people to disable this behaviour.

Vue did not have this behaviour, so i didn't implement it in this PR either.

[CR-8634]
@Haroenv Haroenv requested review from a team, aymeric-giraudet and shaejaz and removed request for a team June 11, 2025 14:03
Copy link

codesandbox-ci bot commented Jun 11, 2025

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

Sandbox Source
example-instantsearch-getting-started Configuration
example-react-instantsearch-getting-started Configuration
example-react-instantsearch-next-app-dir-example Configuration
example-react-instantsearch-next-routing-example Configuration
example-vue-instantsearch-getting-started Configuration

@Haroenv Haroenv merged commit 8b9fae6 into master Jun 12, 2025
14 checks passed
@Haroenv Haroenv deleted the feat/option-searchable-submit branch June 12, 2025 12:56
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