Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

feat(SearchBox): introduce autoFocus prop #3599

Merged
merged 3 commits into from
Aug 22, 2022
Merged

feat(SearchBox): introduce autoFocus prop #3599

merged 3 commits into from
Aug 22, 2022

Conversation

sarahdayan
Copy link
Member

Summary

This PR introduces the autoFocus prop on the <SearchBox> widget in React InstantSearch Hooks.

This prop exists in all flavors but was missing in React InstantSearch Hooks.

The prop capitalization is different from other flavors (JS, Vue and Angular) because we're relying on React's custom autoFocus prop and not the native autofocus. This is more natural for React developers who are used to this prop.

Ticket: FX-1629

@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 e400c50:

Sandbox Source
react-instantsearch-app Configuration
hooks-example Configuration

@netlify
Copy link

netlify bot commented Aug 22, 2022

Deploy Preview for react-instantsearch ready!

Name Link
🔨 Latest commit e400c50
🔍 Latest deploy log https://app.netlify.com/sites/react-instantsearch/deploys/63037edc602fe200083e6df2
😎 Deploy Preview https://deploy-preview-3599--react-instantsearch.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Copy link
Member

@aymeric-giraudet aymeric-giraudet left a comment

Choose a reason for hiding this comment

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

Looks good to me !

examples/hooks/App.tsx Show resolved Hide resolved
@sarahdayan sarahdayan merged commit 99121b9 into master Aug 22, 2022
@sarahdayan sarahdayan deleted the feat/autofocus branch August 22, 2022 13:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants