Skip to content

fix(docsearch.js): preserve input focus when loading indicator changes - #29

Merged
haydenhoang merged 1 commit into
typesense:mainfrom
haydenhoang:main
Oct 13, 2026
Merged

haydenhoang merged 1 commit into
typesense:mainfrom
haydenhoang:main

Conversation

@haydenhoang

Copy link
Copy Markdown
Collaborator

This was a bit tricky to debug since this only happen for docsearch.js which aliases React to Preact. This fix added keys to prevent Preact from replacing the focused search input whenever the loading icon appear.

Verified this fix works in examples/demo-js local dev server.

@haydenhoang
haydenhoang merged commit 0fde059 into typesense:main Oct 13, 2026
1 check passed

@tharropoulos tharropoulos left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

lgtm

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